-
Notifications
You must be signed in to change notification settings - Fork 11
/
tox.ini
39 lines (33 loc) · 865 Bytes
/
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
[tox]
skipsdist=True
envlist = black,flake8,py39
[testenv:black]
commands = black . --check
allowlist_externals=black
[testenv:flake8]
deps =
flake8
# flake8-isort
# disabling quotes for now, see:
# * https://github.com/zheller/flake8-quotes/pull/111
# * https://github.com/PyCQA/flake8/issues/1760
# flake8-quotes
commands = flake8
[flake8]
exclude = .tox,migrations,manage.py,wsgi.py
allowlist_externals=flake8
[isort]
skip = .tox,migrations
line_length=120
default_section = THIRDPARTY
known_django = django
known_first_party = utils
sections = STDLIB,DJANGO,THIRDPARTY,FIRSTPARTY,LOCALFOLDER
[testenv:py39]
deps =
pipenv
commands =
pipenv run coverage run manage.py migrate
pipenv run coverage run manage.py compilemessages
pipenv run coverage run manage.py test
pipenv run -- coverage report --fail-under=50