-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathruff.toml
More file actions
50 lines (42 loc) · 1.08 KB
/
ruff.toml
File metadata and controls
50 lines (42 loc) · 1.08 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
# Make Python code consistent through all projects.
# Defaults: https://docs.astral.sh/ruff/configuration/
# Allow longer lines
line-length = 119
# Assume python version
target-version = "py312"
# In addition to the standard set of exclusions, omit all tests, plus a specific file.
extend-exclude = ["deprecated", "todo"]
[lint]
# Which rules to enable
select = [
"A", # avoid shadowing builtins
"B", # flake8-bugbear
"BLE", # blind-except
"C4", # flake8-comprehensions
# "C90", # complexity (configure below)
# "CPY", # flake8-copyright
#"D", # pydocstyle
"E", # pycodestyle errors
"F", # pyflakes
"I", # isort
# "N", # naming
"SIM", # flake8-simplify
"UP", # pyupgrade
"W", # pycodestyle warnings
# "TRY", # tryceratops
"SIM", # flake8-simplify
"YTT", # flake8-2020
]
ignore = [
"E501", # LineTooLong
"E731", # DoNotAssignLambda
# "S101", # use of assert detected
"F401", # remove unused imports
]
[lint.per-file-ignores]
"*.ipynb" = [
"F401", # remove unused imports
]
unfixable = [
"B",
]