-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
31 lines (26 loc) · 1018 Bytes
/
Copy pathpyproject.toml
File metadata and controls
31 lines (26 loc) · 1018 Bytes
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
[tool.ruff]
target-version = "py312"
line-length = 120
extend-exclude = [
"laue_portal/utilities/srange.py", # Vendored, Python 2 artifacts
"laue_portal/utilities/hkl_parse.py", # Vendored
]
[tool.ruff.lint]
select = ["F", "E", "W", "I", "B"]
ignore = [
"E501", # Line too long -- handled by formatter; comments/strings are ok long
"E741", # Ambiguous variable name 'l' -- used intentionally in scientific code
]
[tool.ruff.lint.per-file-ignores]
"tests/*.py" = ["E402"] # sys.path manipulation before imports
"laue_portal/recon/analysis_recon.py" = ["E402"] # warnings.filterwarnings before imports
"laue_portal/pages/create_reconstruction.py" = ["E402"] # logger setup between import groups
"scripts/polaris_workflow/**/*.py" = ["E402", "B018"] # standalone scripts
[tool.ruff.lint.isort]
known-first-party = ["laue_portal"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
docstring-code-format = true
[tool.pytest.ini_options]
testpaths = ["tests"]