forked from ajhynes7/scikit-spatial
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
40 lines (33 loc) · 822 Bytes
/
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
[tox]
isolated_build = true
[flake8]
max-line-length = 120
rst-directives =
autosummary,plot
rst-roles =
class,func,meth
unused-arguments-ignore-dunder = true
[gh-actions]
python =
3.7: readme, doctests, unit
3.8: readme, doctests, unit
3.9: readme, doctests, unit
3.10: readme, doctests, unit
[testenv]
allowlist_externals = poetry
[testenv:readme]
commands =
poetry run python -m doctest README.rst
[testenv:doctests]
commands =
poetry install --with base_test
poetry run pytest --doctest-modules src/
[testenv:unit]
commands =
poetry install --with base_test
poetry run pytest tests/unit/ --cov=skspatial --cov-report=xml
# For local development only.
[testenv:docs]
commands =
pip install -r docs/source/requirements.txt
sphinx-build docs/source/ docs/build/