Skip to content

Commit

Permalink
Enable a few more Python linting rules
Browse files Browse the repository at this point in the history
  • Loading branch information
hoodmane committed Aug 22, 2024
1 parent 1c80e1b commit 75b98f1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .ruff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,22 @@ select = [
"E", # pycodestyles
"W", # pycodestyles
"F", # pyflakes
"FURB", # refurb
"I", # isort
"PERF", # Perflint
"PGH", # pygrep-hooks
"PLC", # pylint conventions
"PLE", # pylint errors
"PLR", # pylint refactor
"PTH", # Use pathlib
"RUF", # Ruff rules
"TRY", # Exception related lints
"UP", # pyupgrade
]
ignore = [
"E402", # module import not at top of file
"PLR2004", # Magic value used in comparison
"TRY003", # Avoid specifying long messages outside the exception class
"UP038", # Use X | Y in isinstance check instead of (X, Y)
]

Expand Down

0 comments on commit 75b98f1

Please sign in to comment.