From bbd5552853b6a883b2139240ff2814d05aec6881 Mon Sep 17 00:00:00 2001 From: Sam Tygier Date: Mon, 6 Jan 2025 15:56:12 +0000 Subject: [PATCH] Add the ruff INP001 rule 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 --- pyproject.toml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 1aadfe935ea..700500a24e6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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