2018-02-25 15:51:59 +00:00
|
|
|
[tool:pytest]
|
2023-11-13 09:09:56 -08:00
|
|
|
DJANGO_SETTINGS_MODULE = paperless.settings
|
2023-10-19 17:27:29 -07:00
|
|
|
addopts = --pythonwarnings=all --cov --cov-report=html --cov-report=xml --numprocesses auto --maxprocesses=16 --quiet --durations=50
|
2017-06-19 10:57:30 +01:00
|
|
|
env =
|
2023-11-13 09:09:56 -08:00
|
|
|
PAPERLESS_DISABLE_DBHANDLER=true
|
2024-02-04 10:42:21 -08:00
|
|
|
PAPERLESS_CACHE_BACKEND=django.core.cache.backends.locmem.LocMemCache
|
2024-06-09 07:41:18 -07:00
|
|
|
norecursedirs = locale/*
|
2018-02-25 15:51:59 +00:00
|
|
|
|
2018-02-25 16:42:15 +00:00
|
|
|
[coverage:run]
|
|
|
|
|
source =
|
2023-11-13 09:09:56 -08:00
|
|
|
./
|
2018-02-25 16:42:15 +00:00
|
|
|
omit =
|
2023-11-13 09:09:56 -08:00
|
|
|
*/tests/*
|
|
|
|
|
manage.py
|
|
|
|
|
paperless/workers.py
|
|
|
|
|
paperless/wsgi.py
|
|
|
|
|
paperless/auth.py
|
2023-02-06 17:56:33 -08:00
|
|
|
|
2023-10-30 17:23:22 +01:00
|
|
|
[coverage:report]
|
|
|
|
|
exclude_also =
|
|
|
|
|
if settings.AUDIT_LOG_ENABLED:
|
2023-11-13 09:09:56 -08:00
|
|
|
if AUDIT_LOG_ENABLED:
|
2023-12-29 15:42:56 -08:00
|
|
|
if TYPE_CHECKING:
|
2023-10-30 17:23:22 +01:00
|
|
|
|
2023-02-06 17:56:33 -08:00
|
|
|
[mypy]
|
|
|
|
|
plugins = mypy_django_plugin.main, mypy_drf_plugin.main, numpy.typing.mypy_plugin
|
|
|
|
|
check_untyped_defs = true
|
|
|
|
|
disallow_any_generics = true
|
|
|
|
|
disallow_incomplete_defs = true
|
|
|
|
|
disallow_untyped_defs = true
|
|
|
|
|
warn_redundant_casts = true
|
|
|
|
|
warn_unused_ignores = true
|
|
|
|
|
|
|
|
|
|
[mypy.plugins.django-stubs]
|
|
|
|
|
django_settings_module = "paperless.settings"
|