2020-12-27 10:49:54 +00:00
|
|
|
[tox]
|
|
|
|
envlist =
|
2022-11-08 14:55:09 +00:00
|
|
|
py311
|
2024-01-13 18:00:46 +00:00
|
|
|
py312
|
2020-12-27 10:49:54 +00:00
|
|
|
|
|
|
|
linters
|
|
|
|
skipsdist = True
|
|
|
|
|
|
|
|
[testenv]
|
|
|
|
sitepackages = False
|
|
|
|
deps =
|
|
|
|
coverage
|
2023-03-22 14:24:15 +00:00
|
|
|
channels[daphne]~=4.0.0
|
2024-01-13 16:21:55 +00:00
|
|
|
crispy-bootstrap5~=2023.10
|
|
|
|
Django>=5.0,<6.0
|
|
|
|
django-crispy-forms~=2.1
|
|
|
|
django-filter~=23.5
|
2024-01-13 16:27:58 +00:00
|
|
|
git+https://github.com/django-haystack/django-haystack.git#v3.3b1
|
2024-01-13 16:21:55 +00:00
|
|
|
django-phonenumber-field~=7.3.0
|
|
|
|
django-polymorphic~=3.1.0
|
|
|
|
django-tables2~=2.7.0
|
|
|
|
djangorestframework~=3.14.0
|
|
|
|
django-rest-polymorphic~=0.1.10
|
2023-04-07 20:38:09 +00:00
|
|
|
odfpy~=1.4.1
|
2024-01-13 16:21:55 +00:00
|
|
|
phonenumbers~=8.13.27
|
|
|
|
pypdf~=3.17.4
|
|
|
|
python-magic~=0.4.27
|
|
|
|
requests~=2.31.0
|
|
|
|
|
2020-12-27 10:49:54 +00:00
|
|
|
commands =
|
2023-03-22 14:41:56 +00:00
|
|
|
coverage run --source=api,draw,logs,participation,registration,tfjm ./manage.py test api/ draw/ logs/ participation/ registration/ tfjm/
|
2020-12-27 10:49:54 +00:00
|
|
|
coverage report -m
|
|
|
|
|
|
|
|
[testenv:linters]
|
|
|
|
deps =
|
|
|
|
flake8
|
|
|
|
flake8-colors
|
|
|
|
flake8-django
|
|
|
|
flake8-import-order
|
|
|
|
flake8-typing-imports
|
|
|
|
pep8-naming
|
|
|
|
pyflakes
|
|
|
|
commands =
|
2023-03-22 14:41:56 +00:00
|
|
|
flake8 api/ draw/ logs/ participation/ registration/ tfjm/
|
2020-12-27 10:49:54 +00:00
|
|
|
|
|
|
|
[flake8]
|
|
|
|
exclude =
|
|
|
|
.tox,
|
|
|
|
.git,
|
|
|
|
__pycache__,
|
|
|
|
build,
|
|
|
|
dist,
|
|
|
|
*.pyc,
|
|
|
|
*.egg-info,
|
|
|
|
.cache,
|
|
|
|
.eggs,
|
|
|
|
*migrations*
|
2023-04-05 15:52:46 +00:00
|
|
|
max-complexity = 15
|
2020-12-27 10:49:54 +00:00
|
|
|
max-line-length = 160
|
|
|
|
import-order-style = google
|
|
|
|
application-import-names = flake8
|
2022-11-08 14:52:44 +00:00
|
|
|
#format = ${cyan}%(path)s${reset}:${yellow_bold}%(row)d${reset}:${green_bold}%(col)d${reset}: ${red_bold}%(code)s${reset} %(text)s
|