forked from rrthomas/hpmor
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathruff.toml
More file actions
37 lines (30 loc) · 1.04 KB
/
ruff.toml
File metadata and controls
37 lines (30 loc) · 1.04 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
fix = true # auto-fix findings
line-length = 88 # same as Black
target-version = "py313" # Python 3.13
# 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", # incorrect-blank-line-before-class
"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
]
[format]
line-ending = "lf" # force lf
preview = false # enable unstable preview style formatting