Enable PyTest ruff checks

This commit is contained in:
Julian Stirling 2025-09-18 15:43:22 +01:00
parent 4655300910
commit d7d1f42b2c
11 changed files with 42 additions and 37 deletions

View file

@ -116,7 +116,7 @@ select = [
# If they are not fixed before merge they should be converted to GitLab issues
"LOG", # Flake8 logging issues (pedantic logger formatting issues can be added with "G")
"T20", # Warns for print statements, production code should log
# "PT", # pytest linting
"PT", # pytest linting
"RET", # Consistent clear return statements
"RSE", # Raise parentheses
# "SIM", # Simplifications detected
@ -140,6 +140,8 @@ ignore = [
"PLR2004", # Ignore magic values in comparison for now. It doesn't seem we can set
# allowed magic values and a number of our magic values are not really
# 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.
]
[tool.ruff.lint.per-file-ignores]