1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2024-12-24 00:12:23 +00:00
nk20/tox.ini

50 lines
998 B
INI
Raw Normal View History

2019-07-08 10:55:48 +00:00
[tox]
2020-02-18 19:58:01 +00:00
envlist =
py36-django22
py37-django22
linters
2019-07-08 10:55:48 +00:00
skipsdist = True
[testenv]
2020-02-18 19:58:01 +00:00
setenv =
PYTHONWARNINGS = all
2019-07-08 10:55:48 +00:00
deps =
-r{toxinidir}/requirements.txt
coverage
commands =
2019-07-16 13:24:05 +00:00
./manage.py makemigrations
2019-07-08 10:55:48 +00:00
coverage run ./manage.py test {posargs}
coverage report -m
[testenv:linters]
deps =
-r{toxinidir}/requirements.txt
flake8
flake8-colors
flake8-import-order
flake8-typing-imports
pep8-naming
pyflakes
commands =
2020-02-18 19:58:01 +00:00
flake8 apps/activity apps/api apps/member apps/note
2019-07-08 10:55:48 +00:00
[flake8]
2020-02-18 19:58:01 +00:00
# Ignore too many errors, should be reduced in the future
ignore = D203, W503, E203, I100, I101
2019-07-08 10:55:48 +00:00
exclude =
.tox,
.git,
__pycache__,
build,
dist,
*.pyc,
*.egg-info,
.cache,
2019-07-16 10:59:11 +00:00
.eggs,
*migrations*
2019-07-08 10:55:48 +00:00
max-complexity = 10
2020-02-18 19:58:01 +00:00
max-line-length = 160
2019-07-08 10:55:48 +00:00
import-order-style = google
application-import-names = flake8
format = ${cyan}%(path)s${reset}:${yellow_bold}%(row)d${reset}:${green_bold}%(col)d${reset}: ${red_bold}%(code)s${reset} %(text)s