From 7daaa972a64670b686446972f51d2fb536502eae Mon Sep 17 00:00:00 2001 From: Jan Eglinger Date: Mon, 2 Sep 2024 14:20:26 +0200 Subject: [PATCH] Improve test layout Use importlib mode of pytest. Remove __init__.py in tests. --- pyproject.toml | 8 ++++++++ tests/__init__.py | 0 2 files changed, 8 insertions(+) delete mode 100644 tests/__init__.py diff --git a/pyproject.toml b/pyproject.toml index bbc3e34..03ed525 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -83,5 +83,13 @@ exclude_lines = [ "if TYPE_CHECKING:", ] +[tool.ruff.lint.extend-per-file-ignores] +"**/tests/*" = ["INP001"] + [tool.ruff.lint.flake8-type-checking] runtime-evaluated-base-classes = ["pydantic.BaseModel"] + +[tool.pytest.ini_options] +addopts = [ + "--import-mode=importlib", +] diff --git a/tests/__init__.py b/tests/__init__.py deleted file mode 100644 index e69de29..0000000