forked from optimagic-dev/optimagic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
96 lines (88 loc) · 2.22 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
85
86
87
88
89
90
91
92
93
94
95
96
[tox]
envlist = pytest, linting, sphinx
skipsdist = True
skip_missing_interpreters = True
[testenv]
basepython = python
[testenv:pytest]
setenv =
CONDA_DLL_SEARCH_MODIFICATION_ENABLE = 1
conda_channels =
opensourceeconomics
conda-forge
defaults
conda_deps =
bokeh >= 1.3
click
conda-build
fuzzywuzzy
joblib
numdifftools >= 0.9.20
numpy
petsc4py >= 3.11
pandas >= 0.24
pygmo >= 2.15
numba
pytest
pytest-cov
pytest-mock
pytest-xdist
scipy >= 1.2.1
sqlalchemy >= 1.3
numba
commands = pytest {posargs}
[testenv:linting]
passenv = USERPROFILE SSH_AUTH_SOCK
deps =
pre-commit
restructuredtext_lint
Pygments
commands =
pre-commit install -f --install-hooks
pre-commit run --all-files
[testenv:sphinx]
changedir = docs/source
conda_channels = conda-forge
conda_deps =
python
ipython
nbsphinx
sphinx
sphinx_rtd_theme
sphinxcontrib-bibtex
commands =
# Add W flag to builds so that warnings become errors.
sphinx-build -nT -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
sphinx-build -nT -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
W503 ; ignores linebreak before binary operator which is enforced by Black
RST304 ; ignores check for valid rst roles because it is too aggressive
T001 ; ignore print statements
RST301 ; ignores unexpected indentations in docstrings because it was not compatible with google style docstrings
RST203 ; gave false positives
RST202 ; gave false positves
RST201 ; gave false positives
per-file-ignores =
docs/source/conf.py:E501
warn-symbols =
pytest.mark.wip = Remove 'wip' mark for tests.
[pytest]
addopts = --doctest-modules -n auto
filterwarnings =
ignore: Using or importing the ABCs from 'collections'
ignore: the imp module is deprecated
ignore: indexing past lexsort depth may impact performance.
markers =
wip: Tests that are work-in-progress.
norecursedirs =
docs
.tox