25 lines
584 B
INI
25 lines
584 B
INI
[tox]
|
|
envlist = lint, test-py3-app
|
|
skip_missing_interpreters = true
|
|
minversion = 3.21.0
|
|
|
|
[testenv:lint]
|
|
# no need to install package with deps to lint sources
|
|
skip_install = true
|
|
deps =
|
|
black
|
|
flake8
|
|
flake8-import-order
|
|
setenv =
|
|
FORMAT_PATHS = userausfall{/} setup.py
|
|
commands =
|
|
python3 -m flake8 {env:FORMAT_PATHS}
|
|
python3 -m black --check {env:FORMAT_PATHS}
|
|
|
|
[testenv:test-py3-app]
|
|
sitepackages = true
|
|
deps =
|
|
coverage
|
|
setenv = DJANGO_SETTINGS_MODULE=userausfall.settings
|
|
commands =
|
|
python3 -m coverage run --append --source='userausfall' -m django test --verbosity=2
|