-
Notifications
You must be signed in to change notification settings - Fork 22
/
tox.ini
41 lines (37 loc) · 936 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
41
# tox (https://tox.readthedocs.io/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
[tox]
envlist = {py27, py36}, lint, docs
[testenv]
deps =
pytest
descartes
matplotlib
numpy
shapely
commands =
python -m pytest {posargs: tests}
[testenv:lint]
description = check code formatting
basepython = python3.6
deps =
black
isort
flake8
commands =
python -m isort --check-only .
python -m black --check .
python -m flake8 .
[testenv:docs]
description = build the HTML docs
basepython = python3.6
deps =
sphinx
sphinxcontrib-napoleon
sphinx-rtd-theme
commands =
sphinx-apidoc -f -o docs/source gennav
sphinx-build -b html docs/source/ docs/build/
python -c 'print("documentation available at docs/build/")'