-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
83 lines (75 loc) · 1.93 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
[tox]
envlist = pytest, sphinx
skipsdist = True
skip_missing_interpreters = True
[testenv]
basepython = python
[testenv:pytest]
setenv =
CONDA_DLL_SEARCH_MODIFICATION_ENABLE = 1
conda_channels =
conda-forge
defaults
conda_deps =
conda-build
numpy
pandas
pytest
pytest-cov
pytest-mock
pytest-xdist
jax
jaxlib
commands = pytest {posargs}
[testenv:pytest-windows]
setenv =
CONDA_DLL_SEARCH_MODIFICATION_ENABLE = 1
conda_channels =
conda-forge
defaults
conda_deps =
conda-build
numpy
pandas
pytest
pytest-cov
pytest-mock
pytest-xdist
commands = pytest {posargs}
[testenv:sphinx]
changedir = docs/source
conda_env = docs/rtd_environment.yml
commands =
sphinx-build -T -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
- sphinx-build -T -b linkcheck -d {envtmpdir}/doctrees . {envtmpdir}/linkcheck
[doc8]
ignore =
D002,
D004,
max-line-length = 88
[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 positives
RST201 ; gave false positives
W605 ; ignores regex relevant escape sequences
PT001 ; ignores brackets for fixtures.
per-file-ignores =
docs/source/conf.py:E501, E800
warn-symbols =
pytest.mark.wip = Remove 'wip' mark for tests.
[pytest]
addopts = --doctest-modules
markers =
wip: Tests that are work-in-progress.
slow: Tests that take a long time to run and are skipped in continuous integration.
norecursedirs =
docs
.tox