-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathtox.ini
More file actions
44 lines (36 loc) · 787 Bytes
/
tox.ini
File metadata and controls
44 lines (36 loc) · 787 Bytes
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
[tox]
envlist = py38, static, docs
[testenv]
deps=
-r requirements.txt
-r test-requirements.txt
commands=pytest {posargs}
allowlist_externals=sh
[testenv:static]
commands=
sh -c 'pylint src/pubtools/exodus; test $(( $? & (1|2|4|32) )) = 0'
black --check .
isort --check .
[testenv:cov]
usedevelop=true
commands=
pytest --cov-report=html --cov=pubtools.exodus {posargs}
[testenv:cov-ci]
passenv=GITHUB_*
usedevelop=true
commands=
pytest --cov=pubtools.exodus {posargs}
coveralls --service=github
[testenv:docs]
use_develop=true
commands=
sphinx-build -M html docs docs/_build
[pytest]
testpaths = tests
addopts = -v
[coverage:run]
relative_files = true
[flake8]
# E711 complains about "== None", which is expected in sqlalchemy
extend_ignore = E711
max_line_length = 100