-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathruff.toml
More file actions
59 lines (56 loc) · 1.93 KB
/
ruff.toml
File metadata and controls
59 lines (56 loc) · 1.93 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
51
52
53
54
55
56
57
58
59
exclude = [
"src/abilian_devtools/etc",
]
lint.select = ["ALL"]
lint.extend-ignore = [
# False positives
"COM812", # [*] missing-trailing-comma
"RET504", # [ ] unnecessary-assign
"PLR2004", # magic-value-comparison
#
"ANN", # [ ] missing-return-type-undocumented-public-function
"D1", # [ ] undocumented-public-module
"D2",
"D4", # [ ] non-imperative-mood
"T201", # [ ] print
"CPY001", # [ ] missing-copyright-notice
"PLR6301", # [ ] no-self-use
"FIX002", # [ ] line-contains-todo
"PLW1514", # [ ] unspecified-encoding
"TD002", # [ ] missing-todo-author
"TD003", # [ ] missing-todo-link
"TID252", # [ ] relative-imports
"RUF012", # [ ] mutable-class-default
"ERA001", # [ ] commented-out-code
"FBT002", # [ ] boolean-default-value-positional-argument
"A001", # [ ] builtin-variable-shadowing
"A004", # [ ] builtin-import-shadowing
"ARG001", # [ ] unused-function-argument
"ARG002", # [ ] unused-method-argument
"EM102", # [ ] f-string-in-exception
"PGH003", # [ ] blanket-type-ignore
"S404", # [ ] suspicious-subprocess-import
"S603", # [ ] subprocess-without-shell-equals-true
"TD006", # [*] invalid-todo-capitaliz
"TRY003",
"S101", # Use of "assert"
"BLE001", # blind-except
"C901", # complex-structure
"E501", # line-too-long
"PLR0913", # too-many-arguments
"DTZ005", # call-datetime-now-without-tzinfo
"PERF203", # try-except-in-loop
"PERF401", # manual-list-comprehension
"PLR0912", # too-many-branches
]
[lint.per-file-ignores]
"tests/**/*.py" = [
"ANN", # Missing type annotations
"PLR2004", # magic-value-comparison
"E501", # line-too-long
"INP001", # implicit-namespace-package
"PLW2901", # redefined-loop-name
"DTZ005", # call-datetime-now-without-tzinfo
"PTH109", # os-getcwd
"S108", # hardcoded-temp-file
]