-
Notifications
You must be signed in to change notification settings - Fork 5
/
tox.ini
84 lines (78 loc) · 2.05 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
[tox]
envlist = pytest, linting, sphinx
skipsdist = True
skip_missing_interpreters = True
[testenv]
basepython = python
[testenv:pytest]
setenv =
CONDA_DLL_SEARCH_MODIFICATION_ENABLE = 1
conda_deps =
conda-build
click
conda-build
mkl
numpy
pandas >= 1.2
pytest
pytest-cov
pytest-xdist
scipy
seaborn
jax >= 0.1.7
jaxlib >= 0.1.51
filterpy
dags
plotly
conda_channels =
opensourceeconomics
conda-forge
commands =
pytest {posargs} -vvv
[testenv:linting]
passenv = USERPROFILE SSH_AUTH_SOCK
deps =
pre-commit
commands =
pre-commit install -f --install-hooks
pre-commit run --all-files
[testenv:sphinx]
changedir = docs/source
conda_deps =
sphinxcontrib-bibtex
sphinx
pydata-sphinx-theme >= 0.3
nbsphinx
ipython
conda_channels =
conda-forge
commands =
sphinx-build -WT -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
- sphinx-build -WT -b linkcheck -d {envtmpdir}/doctrees . {envtmpdir}/linkcheck
[doc8]
ignore =
D002,
D004
max-line-length = 89
[flake8]
max-line-length = 88
ignore =
D ; ignores docstring style errors, enable if you are nit-picky.
E203 ; ignores whitespace around : which is enforced by Black.
RST304 ; ignores false-positive for :func:.
RST203 ; gave false positives.
W503 ; ignores linebreak before binary operator which is enforced by Black.
RST301 ; ignores unexpected indentations in docstrings because it was not compatible with google style docstrings
RST201 ; gave false positives
[pytest]
addopts = --doctest-modules -n auto
markers =
slow: Tests that take a long time to run.
wip: Tests that are work-in-progress.
norecursedirs =
.tox
filterwarnings =
ignore: indexing past lexsort depth may impact performance.
ignore: Using or importing the ABCs from 'collections' instead of
ignore: the imp module is deprecated in favour of importlib
ignore: No GPU/TPU found, falling back to CPU