-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathruff.toml
More file actions
21 lines (17 loc) · 685 Bytes
/
Copy pathruff.toml
File metadata and controls
21 lines (17 loc) · 685 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Lint/format config. Deliberately small: the point is a consistent style and
# a few real-bug checks, not a wall of stylistic opinions.
line-length = 100
target-version = "py311"
exclude = ["build", ".venv", "notebooks/results"]
[lint]
select = [
"E", # pycodestyle errors
"F", # pyflakes: undefined names, unused imports, real bugs
"I", # import ordering
"UP", # pyupgrade: don't write 3.6-era Python
"B", # bugbear: mutable defaults, loop-variable capture, ...
"SIM", # obvious simplifications
"NPY", # numpy-specific correctness (legacy random, ptp, ...)
]
[lint.isort]
known-first-party = ["engine", "metrics", "strategies", "viz"]