-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
45 lines (40 loc) · 1001 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
40
41
42
43
44
45
[tox]
envlist = pytest,lint
[testenv]
deps =
-rrequirements/base.txt
-rrequirements/tests.txt
commands =
coverage erase
coverage run -m pytest -vv --junitxml=junit-{envname}.xml --ignore={toxworkdir}
coverage report --omit={toxworkdir}/*
coverage html --directory=coverage-{envname} --omit={toxworkdir}/*
[testenv:lint]
skip_install = True
commands =
pylama
black --check .
isort --check --diff .
bandit -r app/
[testenv:format]
skip_install = True
deps =
-rrequirements/tests.txt
unimport
commands =
unimport --gitignore -p --exclude "__init__.py" .
isort .
black .
[testenv:grammar]
skip_install = True
deps =
codespell
commands =
codespell app/ --skip="*.png,*.js,*.pyc,*.jpg,*.ttf,*.eot,*.woff2,*.sqlite3,*.gif,*.webp,*.html,*.css"
[testenv:bundle]
basepython = {env:PYTHON:python}
deps =
pex
commands =
{envpython} setup.py sdist --dist-dir=sdist --format=gztar
{envpython} setup.py bdist_pex --bdist-dir=dist --pex-args='--disable-cache' --bdist-all