Skip to content

Commit bea02d4

Browse files
committed
Update ruff.toml
All applied rules without violations
1 parent 4997f8a commit bea02d4

1 file changed

Lines changed: 17 additions & 10 deletions

File tree

ruff.toml

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,30 @@ docstring-code-format = true
1111
select = [
1212
"E", # pycodestyle errors
1313
"W", # pycodestyle warnings
14-
"I", # isort
15-
"N", # pep8-naming
16-
"F4", # pyflakes: imports/__future__
17-
"F5", # pyflakes: format strings
18-
"F7", # pyflakes: control flow (return/break/continue outside loop/func)
19-
"F8", # pyflakes: undefined/unused names
2014
"RUF100", # unused noqa
15+
"F5", # pyflakes: format strings
2116
"COM818", # enforce trailing comma
22-
"B", # flake8-bugbear
23-
"D204", "D211", "D201", "D202", "D300", # basic docstring formatting
24-
"T20", # prevent native print() statements
25-
"A", # prevent shadowing of python builtins
17+
"F7", # pyflakes: control flow (return/break/continue outside loop/func)
18+
"D204", "D211", "D201", "D300", # basic docstring formatting
2619
]
2720

2821
# TODO: Revisit these
2922
ignore = [
3023
"F403", # star imports - high existing usage
3124
"F405", # may-be-undefined from star imports
3225
"N818", # Exception name should be named with Error suffix
26+
"N", # pep8-naming
27+
"B", # flake8-bugbear
28+
"T20", # prevent native print() statements
29+
"A", # prevent shadowing of python builtins
30+
"FIX", # prevent the creation of T0DO / F1XME comments
31+
# Checked, need manual work:
32+
"I", # isort
33+
"F4", # pyflakes: imports/__future__
34+
"F8", # pyflakes: undefined/unused names
35+
"PIE", # small readability improvements
36+
"PYI", # typing best practices
37+
# Evaluate if we want to use:
38+
"S", # security related precautions
39+
"BLE", # prevent unspecified excepts
3340
]

0 commit comments

Comments
 (0)