Remove import-mode=importlib to fix test diffs

This commit is contained in:
Igor 2025-03-20 11:10:42 +01:00
parent 4080d0255a
commit 232cf43165

View File

@ -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: