-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathruff.toml
More file actions
42 lines (36 loc) · 1.23 KB
/
ruff.toml
File metadata and controls
42 lines (36 loc) · 1.23 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
fix = true # auto-fix findings
line-length = 88 # same as Black
# extend-exclude = ["src/MyBadFile1.py"]
[lint]
# comment this out to use only default rules (["E4", "E7", "E9", "F"])
select = ["ALL"] # activate all rules
fixable = ["ALL"] # fix for all enabled rules
# add some more rules to include
# extend-select = ["B", "Q", "E", "W"]
# rule not to apply
extend-ignore = [
"COM812", # missing-trailing-comma,
"D200", # fits-on-one-line"
"D203", # one-blank-line-before-class (conflicts with D211)
"D211", # blank-line-before-class
"D212", # multi-line-summary-second-line
"ERA", # commented-out code
"FIX002", # line-contains-todo
"ISC001", # implicit-str-concat
"PGH003", # blanket-type-ignore
"RET504", # unnecessary-assign
"S101", # use of asserts
"T201", # print
"TD002", # missing-todo-author
"TD003", # missing-todo-link
]
[lint.per-file-ignores]
"tests/**/*.py" = [
"ANN", # Don't require type annotations in tests
"D", # Don't require doc strings in tests
"INP001", # implicit-namespace-package
"PLR2004", # magic value used in comparison (test assertions)
"S101", # Allow asserts in tests
]
[format]
line-ending = "lf" # force lf