Skip to content

Commit 3744a88

Browse files
committed
ruff.toml: Enable several other Ruff lints
There are no instances of these currently but they all seem like relatively safe additions (even if DTZ may never get triggered since this project does not use datetime). Signed-off-by: Nathan Chancellor <nathan@kernel.org>
1 parent 91854f9 commit 3744a88

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

ruff.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,13 @@ select = [
1111
'ARG', # flake8-unused-arguments
1212
'B', # flake8-bugbear
1313
'C4', # flake8-comprehensions
14+
'DTZ', # flake8-datetimes
1415
'E', # pycodestyle
1516
'F', # pyflakes
1617
'FURB', # refurb
1718
'I', # isort
19+
'N', # pep8-naming
20+
'PERF', # perflint
1821
'PIE', # flake8-pie
1922
'PL', # pylint
2023
'PTH', # flake8-use-pathlib
@@ -23,6 +26,8 @@ select = [
2326
'S', # flake8-bandit
2427
'SIM', # flake8-simplify
2528
'SLF', # flake8-self
29+
'TC', # flake8-type-checking
30+
'TRY', # tryceratops
2631
'UP', # pyupgrade
2732
'W', # pycodestyle
2833
]
@@ -35,4 +40,5 @@ ignore = [
3540
'PLR2004', # magic-value-comparison
3641
'S603', # subprocess-without-shell-equals-true
3742
'S607', # start-process-with-partial-path
43+
'TRY003', # raise-vanilla-args
3844
]

0 commit comments

Comments
 (0)