2022-03-13 14:39:31 -07:00
|
|
|
[flake8]
|
2022-09-01 10:35:33 -07:00
|
|
|
extend-exclude = */migrations/*, */tests/*
|
2022-03-13 14:39:31 -07:00
|
|
|
# E203 - https://www.flake8rules.com/rules/E203.html
|
|
|
|
|
# W503 - https://www.flake8rules.com/rules/W503.html
|
|
|
|
|
ignore = E203,W503
|
|
|
|
|
max-line-length = 88
|
2018-02-25 15:51:59 +00:00
|
|
|
|
|
|
|
|
[tool:pytest]
|
2016-08-21 10:48:41 +01:00
|
|
|
DJANGO_SETTINGS_MODULE=paperless.settings
|
2023-02-01 13:05:56 -08:00
|
|
|
addopts = --pythonwarnings=all --cov --cov-report=html --cov-report=xml --numprocesses auto --quiet
|
2017-06-19 10:57:30 +01:00
|
|
|
env =
|
2020-11-27 13:13:11 +01:00
|
|
|
PAPERLESS_DISABLE_DBHANDLER=true
|
2018-02-25 15:51:59 +00:00
|
|
|
|
2018-02-25 16:42:15 +00:00
|
|
|
[coverage:run]
|
|
|
|
|
source =
|
|
|
|
|
./
|
|
|
|
|
omit =
|
2020-11-17 00:05:06 +01:00
|
|
|
*/tests/*
|
2022-06-13 11:54:11 -07:00
|
|
|
manage.py
|
|
|
|
|
paperless/workers.py
|
|
|
|
|
paperless/wsgi.py
|
|
|
|
|
paperless/auth.py
|
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"
|