2019-07-08 10:55:48 +00:00
|
|
|
[tox]
|
2020-02-18 19:58:01 +00:00
|
|
|
envlist =
|
2020-08-09 17:34:01 +00:00
|
|
|
# Debian Buster Python
|
2020-02-18 19:58:01 +00:00
|
|
|
py37-django22
|
2020-08-09 17:34:01 +00:00
|
|
|
|
|
|
|
# Ubuntu 20.04 Python
|
2020-07-22 19:05:25 +00:00
|
|
|
py38-django22
|
2020-08-09 17:34:01 +00:00
|
|
|
|
2020-12-23 17:48:09 +00:00
|
|
|
# Debian Bullseye Python
|
|
|
|
py39-django22
|
|
|
|
|
2020-02-18 19:58:01 +00:00
|
|
|
linters
|
2019-07-08 10:55:48 +00:00
|
|
|
skipsdist = True
|
|
|
|
|
|
|
|
[testenv]
|
2020-09-01 13:13:25 +00:00
|
|
|
sitepackages = True
|
2019-07-08 10:55:48 +00:00
|
|
|
deps =
|
2020-09-01 12:47:03 +00:00
|
|
|
-r{toxinidir}/requirements.txt
|
2023-03-31 13:48:45 +00:00
|
|
|
coverage<6.5.0
|
2019-07-08 10:55:48 +00:00
|
|
|
commands =
|
2020-12-23 17:45:05 +00:00
|
|
|
coverage run --omit='apps/scripts*,*_example.py,note_kfet/wsgi.py' --source=apps,note_kfet ./manage.py test apps/
|
2019-07-08 10:55:48 +00:00
|
|
|
coverage report -m
|
|
|
|
|
|
|
|
[testenv:linters]
|
|
|
|
deps =
|
|
|
|
flake8
|
2021-05-05 17:09:33 +00:00
|
|
|
flake8-bugbear
|
2019-07-08 10:55:48 +00:00
|
|
|
flake8-colors
|
2020-09-06 18:49:06 +00:00
|
|
|
flake8-django
|
2019-07-08 10:55:48 +00:00
|
|
|
flake8-import-order
|
|
|
|
flake8-typing-imports
|
|
|
|
pep8-naming
|
|
|
|
pyflakes
|
|
|
|
commands =
|
2021-05-12 15:33:11 +00:00
|
|
|
flake8 apps --extend-exclude apps/scripts
|
2019-07-08 10:55:48 +00:00
|
|
|
|
|
|
|
[flake8]
|
2020-09-02 20:33:31 +00:00
|
|
|
ignore = W503, 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*
|
2020-09-06 11:13:29 +00:00
|
|
|
max-complexity = 15
|
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
|