Skip to content

Commit

Permalink
enable some more rules
Browse files Browse the repository at this point in the history
  • Loading branch information
JelleZijlstra committed Jan 24, 2024
1 parent 26dc989 commit 032a6ab
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,25 @@ select = [
"B", # bugbear
"SIM", # simplify
"UP", # pyupgrade
"PIE810", # startswith/endswith with a tuple
"SIM101", # mergeable isinstance() calls
"SIM201", # "not ... == ..." -> "... != ..."
"SIM202", # "not ... != ..." -> "... == ..."
"C400", # unnecessary list() calls
"C401", # unnecessary set() calls
"C402", # unnecessary dict() calls
"C403", # unnecessary listcomp within set() call
"C404", # unnecessary listcomp within dict() call
"C405", # use set literals
"C406", # use dict literals
"C409", # tuple() calls that can be replaced with literals
"C410", # list() calls that can be replaced with literals
"C411", # list() calls with genexps that can be replaced with listcomps
"C413", # unnecessary list() calls around sorted()
"C414", # unnecessary list() calls inside sorted()
"C417", # unnecessary map() calls that can be replaced with listcomps/genexps
"C418", # unnecessary dict() calls that can be replaced with literals
"PERF101", # unnecessary list() calls that can be replaced with literals
]

ignore = [
Expand Down

0 comments on commit 032a6ab

Please sign in to comment.