Add flake8-simplicity rules
This commit is contained in:
parent
d7d1f42b2c
commit
6b1e40f689
7 changed files with 38 additions and 49 deletions
|
|
@ -119,7 +119,7 @@ select = [
|
|||
"PT", # pytest linting
|
||||
"RET", # Consistent clear return statements
|
||||
"RSE", # Raise parentheses
|
||||
# "SIM", # Simplifications detected
|
||||
"SIM", # Simplifications detected
|
||||
"ARG", # unused arguments
|
||||
"C90", # McCabe complexity!
|
||||
"NPY", # Numpy linting
|
||||
|
|
@ -142,6 +142,8 @@ ignore = [
|
|||
# magic (such as 255 when doing uint8 maths)
|
||||
"PT011", # Ifnore pytest.raises being used on too gereneral expectations without a
|
||||
# match. We may need to revisit this.
|
||||
"SIM105", # Not enforcing use of `contextlib.suppress(NotConnectedToServerError)`
|
||||
# instead of `try`-`except`-`pass`
|
||||
]
|
||||
|
||||
[tool.ruff.lint.per-file-ignores]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue