-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
64 lines (55 loc) · 1.56 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
62
63
64
[tox]
envlist = test,lint,packaging,mypy
[testenv]
setenv =
cov: PYTEST_ADDOPTS= --cov {envsitepackagesdir}/pytextable --cov-report xml:{toxinidir}/coverage/coverage.xml --cov-report html:{toxinidir}/coverage/html
passenv = PYTHONPATH CI USER HOME XDG_*
basepython = {env:PYTHON:python3}
deps =
-r{toxinidir}/misc/requirements/requirements_tests.txt
cov: -r{toxinidir}/misc/requirements/requirements_cov.txt
commands = pytest {posargs}
# Linters and checkers for the source code
[testenv:lint]
ignore_errors = true
deps =
-r{toxinidir}/misc/requirements/requirements_lint.txt
commands =
pylint pytextable
pycodestyle pytextable
pydocstyle pytextable
# Check the packaging for best-practices and completeness
[testenv:packaging]
ignore_errors = true
deps =
-r{toxinidir}/misc/requirements/requirements_packaging.txt
commands =
pyroma .
check-manifest
# Check for errors with type annotations
[testenv:mypy]
passenv = PYTHONPATH CI TERM
deps =
-r{toxinidir}/misc/requirements/requirements_mypy.txt
commands = mypy pytextable
# Create a virtual environment to build the documentation
[testenv:docs]
deps =
-r{toxinidir}/misc/requirements/requirements_docs.txt
commands =
sphinx-build -b html docs {posargs}
# Settings for pycodestyle
[pycodestyle]
max-line-length = 88
# E203: whitespace before ':' wrongly raised for slicing
# W503: line break before binary operator does not conform to pep8
ignore = E203,W503
# Settings for check-manifest
[check-manifest]
ignore =
.*
pytest.ini
tox.ini
mypy.ini
tests
tests/*