diff --git a/docs/release_notes/next/dev-2444-ruff-implicit-namespace-package b/docs/release_notes/next/dev-2444-ruff-implicit-namespace-package new file mode 100644 index 00000000000..092b2e162b3 --- /dev/null +++ b/docs/release_notes/next/dev-2444-ruff-implicit-namespace-package @@ -0,0 +1 @@ +#2444: Ruff rule to check for missing __init__.py files diff --git a/environment-dev.yml b/environment-dev.yml index f48da26dd12..5757bfb7676 100644 --- a/environment-dev.yml +++ b/environment-dev.yml @@ -29,7 +29,7 @@ dependencies: - pyinstaller==6.9.* - pyright==1.1.* - make==4.3 - - ruff=0.3.3 + - ruff=0.3.7 - pre-commit==3.5.* - sphinx==7.2.* - pydata-sphinx-theme==0.15.* diff --git a/mantidimaging/gui/widgets/palette_changer/test/__init__.py b/mantidimaging/gui/widgets/palette_changer/test/__init__.py new file mode 100644 index 00000000000..3bf970a700e --- /dev/null +++ b/mantidimaging/gui/widgets/palette_changer/test/__init__.py @@ -0,0 +1,3 @@ +# Copyright (C) 2021 ISIS Rutherford Appleton Laboratory UKRI +# SPDX - License - Identifier: GPL-3.0-or-later +from __future__ import annotations 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