mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-07-19 20:42:19 +03:00
Remove import-mode=importlib to fix test diffs
This commit is contained in:
parent
4080d0255a
commit
232cf43165
|
@ -1,7 +1,7 @@
|
||||||
# ==== pytest ====
|
# ==== pytest ====
|
||||||
[tool.pytest.ini_options]
|
[tool.pytest.ini_options]
|
||||||
minversion = "6.0"
|
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 = [
|
python_files = [
|
||||||
"tests.py",
|
"tests.py",
|
||||||
"test_*.py",
|
"test_*.py",
|
||||||
|
@ -60,6 +60,7 @@ indent_size = 2
|
||||||
|
|
||||||
[tool.ruff]
|
[tool.ruff]
|
||||||
target-version = "py312"
|
target-version = "py312"
|
||||||
|
line-length = 119
|
||||||
# Exclude a variety of commonly ignored directories.
|
# Exclude a variety of commonly ignored directories.
|
||||||
extend-exclude = [
|
extend-exclude = [
|
||||||
"*/migrations/*.py",
|
"*/migrations/*.py",
|
||||||
|
@ -127,6 +128,8 @@ ignore = [
|
||||||
"S101", # Use of assert detected https://docs.astral.sh/ruff/rules/assert/
|
"S101", # Use of assert detected https://docs.astral.sh/ruff/rules/assert/
|
||||||
"RUF012", # Mutable class attributes should be annotated with `typing.ClassVar`
|
"RUF012", # Mutable class attributes should be annotated with `typing.ClassVar`
|
||||||
"SIM102", # sometimes it's better to nest
|
"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
|
"UP038", # Checks for uses of isinstance/issubclass that take a tuple
|
||||||
# of types for comparison.
|
# of types for comparison.
|
||||||
# Deactivated because it can make the code slow:
|
# Deactivated because it can make the code slow:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user