Start adding ANN ruff rules

This commit is contained in:
Julian Stirling 2025-08-27 13:21:34 +01:00
parent 154f063ab3
commit 24233412af
19 changed files with 123 additions and 46 deletions

View file

@ -124,8 +124,9 @@ select = [
"C90", # McCabe complexity!
"NPY", # Numpy linting
"N", # PEP8 naming
"D", # Docstring checks these may need to be added gradually
"D", # Docstring checks
"ERA001", # Commented out code!
"ANN001",
]
ignore = [
@ -140,6 +141,11 @@ ignore = [
# 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/*" = [
"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
]
[tool.ruff.lint.pydocstyle]