-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
61 lines (54 loc) · 1.08 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
56
57
58
59
60
61
[flake8]
max-line-length = 88
ignore = E203,W503,E731
[tox]
envlist =
py38,
formatting,
types,
coverage,
[testenv]
usedevelop = True
deps =
-rrequirements/install.txt
-rrequirements/test.txt
setenv =
NODOCKER = 1
PYTHONPATH = {toxinidir}
py{38}: COVERAGE_FILE=.coverage.{envname}
commands =
py{38}: py.test --cov=inveniautils --verbose --tb=long
[testenv:formatting]
basepython = python3.8
deps =
flake8
black
commands =
black --version
black inveniautils tests --check --diff
flake8 --version
flake8 inveniautils tests
[testenv:types]
basepython = python3.8
deps =
mypy
-rrequirements/stubs.txt
commands =
mypy --version
mypy inveniautils tests
[testenv:coverage]
basepython = python3.8
deps = coverage
skip_install = True
skipsdist = True
commands =
/usr/bin/env bash -c "{envpython} -m coverage combine .coverage.*"
coverage report
coverage html
[testenv:docs]
basepython = python3.8
deps =
sphinx
sphinx-autoapi
sphinx-rtd-theme
commands = sphinx-build {posargs:-E} -b html docs dist/docs