-
Notifications
You must be signed in to change notification settings - Fork 123
/
pyproject.toml
36 lines (31 loc) · 1.03 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
[tool.ruff]
line-length = 140
# https://beta.ruff.rs/docs/rules/
lint.select = ["C90", "E", "F", "RUF100", "W"]
lint.ignore = ["E402", # module level import not at top of file
"E722", # bare except
"E741", # ambiguous variable name, generally 'l'
]
exclude = [
"Framework/PythonInterface/test",
"qt/applications/workbench/workbench/app/resources.py",
"qt/python/mantidqt/mantidqt/resources.py",
"qt/python/mantidqt/mantidqt/dialogs/errorreports/resources_qt5.py",
"Testing/PerformanceTests",
"Testing/SystemTests/lib",
"Testing/SystemTests/scripts",
"Testing/SystemTests/tests/framework/reference",
"scripts/ErrorReporter/ui_errorreport.py"
]
[tool.ruff.lint.mccabe]
max-complexity = 20
[tool.versioningit.vcs]
method = "git"
default-tag = "0.0.0"
exclude = ["nightly"]
[tool.versioningit.next-version]
method = "minor"
[tool.versioningit.format]
distance = "{base_version}.dev{distance}"
dirty = "{base_version}+uncommitted"
distance-dirty = "{base_version}.dev{distance}+uncommitted"