-
Notifications
You must be signed in to change notification settings - Fork 6
/
tox.ini
58 lines (50 loc) · 1.75 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
[tox]
envlist = py{36,37,38,39,py3},lint,docs
[testenv]
download = True
deps = -rrequirements/test.txt
commands =
{envpython} tests/scripts/link_doctests.py
coverage run -m pytest -v tests
coverage report
setenv =
# We don't enforce this when a user installs the package under pypy because the user should be able to choose the
# source of the dependencies. Here, we use prebuilt binaries to save time when running tests.
pypy3: PIP_EXTRA_INDEX_URL = https://antocuni.github.io/pypy-wheels/manylinux2010/
[testenv:lint]
usedevelop = True
deps = -rrequirements/lint.txt
commands =
yamllint -c .yamllint.yaml .
# Avoid linting source/api_references
rstcheck -r docs/source/index.rst docs/source/miscellaneous docs/source/tutorial
flake8 .
bandit -r .
codespell --ignore-words-list="ba" --skip="./.tox/*,./tox,*.ipynb,*.pem,./.eggs/*,./.git/*,*/.mypy_cache/*"
mypy pardata
[testenv:docs]
usedevelop = True
description = Invoke sphinx-build to build the HTML docs
deps = -rrequirements/docs.txt
commands =
sphinx-build -d "{envdir}/doctree" docs/source "{envdir}/out" -b html -W --color
{envpython} -c 'print("Documentation available under {envdir}/out")'
[testenv:dev]
usedevelop = True
description = Development environment
deps = -rrequirements-dev.txt
commands =
{envpython} tests/scripts/link_doctests.py
{envpython} -c "print(r'{envpython}')"
[pytest]
addopts = --doctest-modules --ignore=docs/source/conf.py
doctest_optionflags = ELLIPSIS
[coverage:run]
source = pardata
[coverage:report]
fail_under = 100
show_missing = True
[flake8]
max-line-length = 120
exclude = .eggs,.git,__pycache__,.tox
per-file-ignores = __init__.py,dataset.py,exceptions.py,schema.py,typing.py,audio.py,image.py,table.py,text.py:F401