1
0
mirror of https://gitlab.crans.org/mediatek/med.git synced 2024-11-30 08:53:04 +00:00
med/tox.ini

52 lines
998 B
INI
Raw Normal View History

2019-08-02 11:24:49 +00:00
[tox]
2019-08-02 11:32:09 +00:00
envlist = py35,py36,py37,linters
2019-08-02 11:24:49 +00:00
skipsdist = True
[testenv]
basepython = python3
deps =
-r{toxinidir}/requirements.txt
coverage
commands =
./manage.py makemigrations
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 =
2019-08-09 21:22:20 +00:00
flake8 logs media search users
2019-08-02 11:24:49 +00:00
pylint .
[flake8]
2019-08-09 21:22:20 +00:00
ignore = D203, W503, E203, I100, I201, I202
2019-08-02 11:24:49 +00:00
exclude =
.tox,
.git,
__pycache__,
build,
dist,
*.pyc,
*.egg-info,
.cache,
.eggs,
*migrations*
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