-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.cfg
36 lines (30 loc) · 993 Bytes
/
setup.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
[tool:pytest]
DJANGO_SETTINGS_MODULE = config.settings.test
addopts = --ds=config.settings.test
--reuse-db
--color=yes --tb=long --maxfail=1 --cov-report=html --cov=sme_ptrf_apps
--no-cov-on-fail
--pdbcls=IPython.terminal.debugger:Pdb --pdb
;Para debugar o teste descomente a linha acima
junit_suite_name = ptrf_backend
[flake8]
max-line-length = 120
exclude = .tox,.git,*/migrations/*,*/static/CACHE/*,docs,node_modules
[pycodestyle]
max-line-length = 120
exclude = .tox,.git,*/migrations/*,*/static/CACHE/*,docs,node_modules
[mypy]
python_version = 3.11
check_untyped_defs = True
ignore_missing_imports = True
warn_unused_ignores = True
warn_redundant_casts = True
warn_unused_configs = True
plugins = mypy_django_plugin.main
follow_imports = skip
disallow_untyped_defs = True
[mypy.plugins.django-stubs]
django_settings_module = config.settings.test
[mypy-*.migrations.*]
# Django migrations should not produce any errors:
ignore_errors = True