Skip to content

Commit

Permalink
Add the ruff INP001 rule
Browse files Browse the repository at this point in the history
This check that every directory with a python file has a __init__.py
Ignore directories outside the mantidimaging package, as these have some standalone files
  • Loading branch information
samtygier-stfc committed Jan 6, 2025
1 parent a69c3ae commit bbd5552
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,13 @@ line-length = 120
target-version = "py310"

[tool.ruff.lint]
select = ["F", "E", "W", "UP", "B", "C4", "FA", "NPY"]
select = ["F", "E", "W", "UP", "B", "C4", "FA", "NPY", "INP"]
fixable = ["UP"]
ignore = ["UP014"]

[tool.ruff.lint.per-file-ignores]
"!mantidimaging/**.py" = ["INP"]

[tool.pyright]
typeCheckingMode = "basic"
reportMissingImports = false
Expand Down

0 comments on commit bbd5552

Please sign in to comment.