nk20/tox.ini

52 lines
984 B
INI
Raw Normal View History

2019-07-08 10:55:48 +00:00
[tox]
envlist = py36,py37,linters
skipsdist = True
[testenv]
basepython = python3
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:pre-commit]
deps = pre-commit
commands =
pre-commit run --all-files --show-diff-on-failure
[testenv:linters]
deps =
-r{toxinidir}/requirements.txt
flake8
flake8-colors
flake8-import-order
flake8-typing-imports
pep8-naming
pyflakes
pylint
commands =
flake8 app/activity app/member app/note
2019-07-08 10:55:48 +00:00
pylint .
[flake8]
ignore = D203, W503, E203
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
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