Remove assert statements from production code
This commit is contained in:
parent
6d8cb299aa
commit
ef89b536fc
3 changed files with 7 additions and 8 deletions
|
|
@ -126,6 +126,7 @@ select = [
|
|||
"N", # PEP8 naming
|
||||
"D", # Docstring checks
|
||||
"ERA001", # Commented out code!
|
||||
"S101",# No asserts!
|
||||
"ANN",
|
||||
]
|
||||
|
||||
|
|
@ -139,14 +140,10 @@ ignore = [
|
|||
]
|
||||
|
||||
[tool.ruff.lint.per-file-ignores]
|
||||
# Tests are currently not fully docstring-ed, we'll ignore this for now.
|
||||
"tests/*" = [
|
||||
"B018", # Complaining about useless attribute access in tests, but we need them to check errors are raised
|
||||
"ANN", # Tests are not typehinted for fixtures etc
|
||||
]
|
||||
"hardware-specific-tests/*" = [
|
||||
"{tests,integration-tests,hardware-specific-tests}/**" = [
|
||||
"B018", # Complaining about useless attribute access in tests, but we need them to check errors are raised
|
||||
"ANN", # Tests are not typehinted for fixtures etc
|
||||
"S101", # Allow asserts in tests
|
||||
]
|
||||
|
||||
[tool.ruff.lint.pydocstyle]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue