-
Notifications
You must be signed in to change notification settings - Fork 13
/
tox.ini
55 lines (47 loc) · 1.17 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
[tox]
envlist = py36, py37, py38, py39, py38-lint
[gh-actions]
python =
3.6: py36
3.7: py37
3.8: py38
3.9: py39
[testenv]
deps = -rrequirements_test.txt
commands =
{envpython} setup.py nosetests --verbosity=2
[testenv:py36]
deps =
{[testenv]deps}
coverage
commands =
coverage run --source=dql --branch setup.py nosetests --verbosity=2
[testenv:package]
deps =
pex
wheel
commands =
python setup.py sdist bdist_wheel
pex . -m dql:main -o build/dql
[testenv:py38-lint]
ignore_errors = true
commands =
pip list -l
mypy dql tests setup.py bin/install.py
isort --skip snapshots -c -rc dql tests setup.py bin/install.py
black --exclude=snapshots --check dql tests setup.py bin/install.py
pylint --rcfile=.pylintrc dql tests bin/install.py
[testenv:format]
commands =
isort --skip snapshots -y -ac -rc dql tests setup.py bin/install.py
black --exclude=snapshots dql tests setup.py bin/install.py
[testenv:coverage]
deps =
{[testenv]deps}
coverage
commands =
coverage run --source=dql --branch setup.py nosetests --verbosity=2
coverage report
coverage html
[coverage:html]
directory = coverage_html