-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtox.ini
40 lines (34 loc) · 1.03 KB
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
[tox]
envlist = py36,py37,py38,p39,coverage,flake8
skipsdist = True
[testenv]
deps=-r{toxinidir}/requirements.txt
commands=python manage.py test
[testenv:warnings]
deps=-r{toxinidir}/requirements.txt
commands=python -Wa manage.py test
[testenv:coverage]
deps=
-r{toxinidir}/requirements.txt
coverage
commands=
coverage erase
coverage run --source='scoreboard' --omit='*/apps.py,*/migrations/*' manage.py test
coverage html
[testenv:flake8]
deps=
flake8
pep8-naming
commands=flake8 {posargs} scoreboard fretsboard
[flake8]
# E122 continuation line missing indentation or outdented
# E125 continuation line with same indent as next logical line
# E126 continuation line over-indented for hanging indent
# E128 continuation line under-indented for visual indent
# E265 block comment should start with '# '
# E401 multiple imports on one line
# E501 line too long
# F403 import *
# W504 line break after binary operator
ignore = E122,E125,E126,E128,E265,E401,E501,F403,W504
exclude = .tox,.git,manage.py,local_settings.py