-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtox.ini
59 lines (52 loc) · 1.53 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
[tox]
envlist = pytest, sphinx
[testenv]
usedevelop = true
[testenv:pytest]
conda_channels =
conda-forge
nodefaults
conda_deps =
networkx
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