-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.ruff.toml
48 lines (46 loc) · 1.49 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
line-length = 120
target-version = "py39"
[lint]
extend-select = [
"F",
"E",
"W",
"I",
# "N", # variable naming
"D",
"UP",
"ANN",
"ASYNC", # async validation
# "S", # bandit - generic good practices
# "BLE", # disallows except Exception
# "B", # bugbear - pretty reasonable, probs enable
# "A", # builtins - prevent shadowing of python builtins
# "COM", # require trailing commas. nice.
# "C4", # comprehension checks. nice.
# "DTZ", # make sure datetimes are tz aware
# "EM", # make tracebacks a bit cleaner by enforcing good exceptions
"ISC", # prevent implicit string concats (usually as a result of formatting)
# "G", # prevent logging statements from using fstrings
# "INP", # implicit namespaces. mainly affects tests atm.
# "PIE", # misc lints
# "T20",
"PT",
# "RET", # ensure returns are cleaner
# "SLF", # prevent accessing privates
"SIM",
"TCH",
# "ARG", # unused arguments
# "PTH", # use pathlib as much as possible
# "TD", # Make todos have issue links and authors
# "ERA", # show commented out code
# "PD", # clean up pandas code
# "PGH", # misc lints, mainly non-specific ignores
# "PL", # pylint - misc lints
# "TRY", # better exceptions
# "PERF", # performance related stuff
# "RUF", # misc linting
]
extend-ignore = ["ANN101", "ANN401", "ISC001"]
[lint.pydocstyle]
convention = "google"
ignore-decorators = ["overrides.overrides"]