1
0
mirror of https://gitlab.crans.org/mediatek/med.git synced 2024-12-26 06:22:23 +00:00
med/tox.ini

44 lines
817 B
INI
Raw Normal View History

2019-08-02 11:24:49 +00:00
[tox]
2020-12-28 21:55:48 +00:00
envlist = py37,py38,py39,linters
2019-08-02 11:24:49 +00:00
skipsdist = True
[testenv]
2020-09-23 15:37:55 +00:00
sitepackages = True
2019-08-02 11:24:49 +00:00
deps =
-r{toxinidir}/requirements.txt
coverage
commands =
2020-09-23 15:37:55 +00:00
coverage run --omit='*migrations*' ./manage.py test {posargs}
2019-08-02 11:24:49 +00:00
coverage report -m
[testenv:linters]
deps =
flake8
flake8-colors
2020-09-23 15:37:55 +00:00
flake8-django
2019-08-02 11:24:49 +00:00
flake8-import-order
flake8-typing-imports
pep8-naming
pyflakes
commands =
2020-05-12 12:56:31 +00:00
flake8 logs media users
2019-08-02 11:24:49 +00:00
[flake8]
2020-09-23 15:37:55 +00:00
ignore = W503, I100, I101
2019-08-02 11:24:49 +00:00
exclude =
.tox,
.git,
__pycache__,
build,
dist,
*.pyc,
*.egg-info,
.cache,
.eggs,
*migrations*
2020-09-23 15:37:55 +00:00
max-complexity = 15
2019-08-02 11:24:49 +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