-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.ruff.toml
51 lines (46 loc) · 1.34 KB
/
.ruff.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
fix = true
line-length = 88
target-version = "py311"
[format]
# Enable reformatting of code snippets in docstrings.
docstring-code-format = true
[lint]
unfixable = [
"ERA", # do not autoremove commented out code
]
extend-select = [
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"ERA", # flake8-eradicate/eradicate
"I", # isort
"N", # pep8-naming
"PIE", # flake8-pie
"PGH", # pygrep
"RUF", # ruff checks
"SIM", # flake8-simplify
"TCH", # flake8-type-checking
"TID", # flake8-tidy-imports
"UP", # pyupgrade
"D", # pydocstyle
]
extend-ignore = [
"ERA001", # commented out code
"D100", # missing docstring in public module
"D101", # missing docstring in public class
"D102", # missing docstring in public method
"D103", # missing docstring in public function
"D104", # missing docstring in public package
"D105", # missing docstring in magic method
"D106", # missing docstring in public nested class
"D107", # missing docstring in __init__
"N812", # lowercase imported as non lowercase
"TCH002", # move third-party into a type-checking block
"F722", # jaxtyping
]
[lint.flake8-tidy-imports]
ban-relative-imports = "all"
[lint.isort]
lines-after-imports = 2
known-first-party = ["tests"]
[lint.pydocstyle]
convention = "google"