mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-02 13:45:10 -05:00
33 lines
801 B
INI
33 lines
801 B
INI
[tool:pytest]
|
|
DJANGO_SETTINGS_MODULE = paperless.settings
|
|
addopts = --pythonwarnings=all --cov --cov-report=html --cov-report=xml --numprocesses auto --maxprocesses=16 --quiet --durations=50
|
|
env =
|
|
PAPERLESS_DISABLE_DBHANDLER=true
|
|
|
|
[coverage:run]
|
|
source =
|
|
./
|
|
omit =
|
|
*/tests/*
|
|
manage.py
|
|
paperless/workers.py
|
|
paperless/wsgi.py
|
|
paperless/auth.py
|
|
|
|
[coverage:report]
|
|
exclude_also =
|
|
if settings.AUDIT_LOG_ENABLED:
|
|
if AUDIT_LOG_ENABLED:
|
|
|
|
[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"
|