mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-07-19 04:22:23 +03:00
Remove import-mode=importlib to fix test diffs
This commit is contained in:
parent
4080d0255a
commit
232cf43165
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue
Block a user