| 1 |
# To use tox, see https://tox.readthedocs.io |
| 2 |
# Simply pip or conda install tox |
| 3 |
# If you use conda, you may also want to install tox-conda |
| 4 |
# then run `tox` or `tox -- {pytest args}` |
| 5 |
# To run in parallel using `tox -p` (this does not appear to work for this repo) |
| 6 |
|
| 7 |
# To rebuild the tox environment, for example when dependencies change, use |
| 8 |
# `tox -r` |
| 9 |
|
| 10 |
# Note: if the following error is encountered: `ImportError while loading conftest` |
| 11 |
# then then deleting compiled files has been found to fix it: `find . -name \*.pyc -delete` |
| 12 |
|
| 13 |
[tox] |
| 14 |
envlist = py38 |
| 15 |
|
| 16 |
[testenv] |
| 17 |
usedevelop = true |
| 18 |
|
| 19 |
[testenv:py{37,38,39,310}] |
| 20 |
extras = testing |
| 21 |
deps = |
| 22 |
black |
| 23 |
flake8 |
| 24 |
setenv = |
| 25 |
SQLALCHEMY_WARN_20 = 1 |
| 26 |
commands = pytest {posargs} |
| 27 |
|
| 28 |
[testenv:cli] |
| 29 |
; extras = cli |
| 30 |
deps = |
| 31 |
ipykernel |
| 32 |
jupytext |
| 33 |
commands = jcache {posargs} |
| 34 |
|
| 35 |
[testenv:docs-{clean,update}] |
| 36 |
extras = |
| 37 |
cli |
| 38 |
rtd |
| 39 |
whitelist_externals = |
| 40 |
echo |
| 41 |
rm |
| 42 |
commands = |
| 43 |
clean: rm -rf docs/_build |
| 44 |
sphinx-build -nW --keep-going -b {posargs:html} docs/ docs/_build/{posargs:html} |
| 45 |
commands_post = echo "open file://{toxinidir}/docs/_build/{posargs:html}/index.html" |
| 46 |
|
| 47 |
|
| 48 |
[pytest] |
| 49 |
addopts = --ignore=_archive/ |
| 50 |
|
| 51 |
[flake8] |
| 52 |
max-line-length = 100 |
| 53 |
extend-ignore = E203 |