-
Notifications
You must be signed in to change notification settings - Fork 71
/
tox.ini
58 lines (53 loc) · 1.17 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]
isolated_build = True
envlist = py38, py39, py310, py311
[gh-actions]
python =
3.8: py38
3.9: py39
3.10: py310
3.11: py311
[flake8]
per-file-ignores =
setup.py: F821
docs/_build/*: ALL
docs/conf.py: E402
**/__init__.py: F401 F403
ignore =
E203
E501
W291
W503
docstring_style=numpy
[testenv]
deps =
black
darglint
flake8
hypothesis
interrogate
matplotlib
mypy
pytest-subtests
pytest-cov
pytest-randomly
pytest-sugar
commands =
python -m black --check src/
python -m black --check tests/
python -m mypy --ignore-missing-imports src/nashpy
python -m interrogate -v --ignore-init-method --ignore-init-module --fail-under 100 src/nashpy --exclude src/nashpy/version.py --ignore-magic
python -m pytest tests --cov=nashpy --cov-fail-under=100 --doctest-glob="*.md" --doctest-glob="*.rst"
python -m flake8 src/
python -m flake8 tests/
[testenv:benchmark]
deps =
pytest
pytest-memray
pytest-benchmark
commands =
python -m pytest --memray benchmarks --benchmark-autosave
[testenv:docs]
extras = doc
commands =
sphinx-build docs docs/_build/html -W -b html