From 232cf43165f84aa449451a84bb5b0a7182293db6 Mon Sep 17 00:00:00 2001 From: Igor Date: Thu, 20 Mar 2025 11:10:42 +0100 Subject: [PATCH] Remove import-mode=importlib to fix test diffs --- {{cookiecutter.project_slug}}/pyproject.toml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/{{cookiecutter.project_slug}}/pyproject.toml b/{{cookiecutter.project_slug}}/pyproject.toml index eaead446c..c64cb06b4 100644 --- a/{{cookiecutter.project_slug}}/pyproject.toml +++ b/{{cookiecutter.project_slug}}/pyproject.toml @@ -1,7 +1,7 @@ # ==== pytest ==== [tool.pytest.ini_options] minversion = "6.0" -addopts = "--ds=config.settings.test --reuse-db --import-mode=importlib" +addopts = "--ds=config.settings.test --reuse-db" # NOTE: --import-mode=importlib removed because of missing diff python_files = [ "tests.py", "test_*.py", @@ -60,6 +60,7 @@ indent_size = 2 [tool.ruff] target-version = "py312" +line-length = 119 # Exclude a variety of commonly ignored directories. extend-exclude = [ "*/migrations/*.py", @@ -127,6 +128,8 @@ ignore = [ "S101", # Use of assert detected https://docs.astral.sh/ruff/rules/assert/ "RUF012", # Mutable class attributes should be annotated with `typing.ClassVar` "SIM102", # sometimes it's better to nest + "SLF001", # Private member accessed + "TRY301", # raise-within-try "UP038", # Checks for uses of isinstance/issubclass that take a tuple # of types for comparison. # Deactivated because it can make the code slow: