|
1 | 1 | [build-system]
|
2 |
| -requires = ["setuptools>=64", "setuptools_scm[toml]>=6.2"] |
| 2 | +requires = ["setuptools>=64", "setuptools_scm[toml]>=8"] |
3 | 3 | build-backend = "setuptools.build_meta"
|
4 | 4 |
|
5 | 5 | [project]
|
@@ -55,7 +55,7 @@ name = "Martin Gaughran"
|
55 | 55 |
|
56 | 56 |
|
57 | 57 | [tool.setuptools_scm]
|
58 |
| -write_to = "src/fastcs/_version.py" |
| 58 | +version_file = "src/fastcs/_version.py" |
59 | 59 |
|
60 | 60 | [tool.mypy]
|
61 | 61 | ignore_missing_imports = true # Ignore missing stubs in imported modules
|
@@ -105,11 +105,18 @@ commands =
|
105 | 105 | src = ["src", "tests"]
|
106 | 106 | line-length = 88
|
107 | 107 | lint.select = [
|
108 |
| - "B", # flake8-bugbear - https://docs.astral.sh/ruff/rules/#flake8-bugbear-b |
109 |
| - "C4", # flake8-comprehensions - https://docs.astral.sh/ruff/rules/#flake8-comprehensions-c4 |
110 |
| - "E", # pycodestyle errors - https://docs.astral.sh/ruff/rules/#error-e |
111 |
| - "F", # pyflakes rules - https://docs.astral.sh/ruff/rules/#pyflakes-f |
112 |
| - "W", # pycodestyle warnings - https://docs.astral.sh/ruff/rules/#warning-w |
113 |
| - "I", # isort - https://docs.astral.sh/ruff/rules/#isort-i |
114 |
| - "UP", # pyupgrade - https://docs.astral.sh/ruff/rules/#pyupgrade-up |
| 108 | + "B", # flake8-bugbear - https://docs.astral.sh/ruff/rules/#flake8-bugbear-b |
| 109 | + "C4", # flake8-comprehensions - https://docs.astral.sh/ruff/rules/#flake8-comprehensions-c4 |
| 110 | + "E", # pycodestyle errors - https://docs.astral.sh/ruff/rules/#error-e |
| 111 | + "F", # pyflakes rules - https://docs.astral.sh/ruff/rules/#pyflakes-f |
| 112 | + "W", # pycodestyle warnings - https://docs.astral.sh/ruff/rules/#warning-w |
| 113 | + "I", # isort - https://docs.astral.sh/ruff/rules/#isort-i |
| 114 | + "UP", # pyupgrade - https://docs.astral.sh/ruff/rules/#pyupgrade-up |
| 115 | + "SLF", # self - https://docs.astral.sh/ruff/settings/#lintflake8-self |
115 | 116 | ]
|
| 117 | + |
| 118 | +[tool.ruff.lint.per-file-ignores] |
| 119 | +# By default, private member access is allowed in tests |
| 120 | +# See https://github.com/DiamondLightSource/python-copier-template/issues/154 |
| 121 | +# Remove this line to forbid private member access in tests |
| 122 | +"tests/**/*" = ["SLF001"] |
0 commit comments