-
Notifications
You must be signed in to change notification settings - Fork 140
Expand file tree
/
Copy pathpyproject.toml
More file actions
50 lines (43 loc) · 1.73 KB
/
pyproject.toml
File metadata and controls
50 lines (43 loc) · 1.73 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
[tool.ruff]
line-length = 120
target-version = "py312"
[tool.ruff.lint]
select = ["B", "C4", "E", "F", "I", "RUF", "SIM", "UP", "W"]
ignore = [
"B007", # Unused loop variable - common in physics iteration code
"B008", # Function call in default argument - used for os.path.expandvars
"B905", # zip() without strict= - lengths are known in physics code
"E402", # Module import not at top - common in simulation scripts
"E501", # Line too long - handled by formatter where possible
"RUF001", # Ambiguous unicode - Greek letters common in physics
"RUF002", # Ambiguous unicode in docstring - Greek letters common in physics
"RUF003", # Ambiguous unicode in comment - Greek letters common in physics
"RUF005", # Consider iterable unpacking - not always clearer
"RUF015", # Prefer next() over single element slice - existing pattern
"SIM102", # Combine nested ifs - often less readable with long conditions
"SIM108", # Use ternary operator - often less readable in physics code
"SIM112", # Use env var capitalization - external tools set the names
"SIM113", # Use enumerate - manual counters common in physics loops
"UP031", # Use format specifiers - too many changes for %-formatting
]
[tool.codespell]
ignore-words-list = 'Millepede,Gaus,gaus,dYIn,te,KNO,kno'
[tool.pyrefly]
python-version = "3.12"
search-path = ["python"]
replace-imports-with-any = [
"ROOT", "ROOT.*",
"rootUtils", "rootUtils.*",
"genfit", "genfit.*",
"cppyy", "cppyy.*",
"ShipGeoConfig", "ShipGeoConfig.*",
"shipRoot_conf", "shipRoot_conf.*",
]
ignore-missing-imports = [
"scipy", "scipy.*",
"tabulate",
"numpy", "numpy.*",
"yaml", "yaml.*",
]
[tool.pyrefly.errors]
missing-import = false