-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathtox.ini
90 lines (79 loc) · 2.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
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
[tox]
envlist = pytest, pre-commit, sphinx
skipsdist = True
skip_missing_interpreters = True
whitelist_externals = python
[testenv]
basepython = python
[testenv:pytest]
conda_channels =
conda-forge
nodefaults
conda_deps =
# pytest
pytest
pytest-cov
pytest-xdist
# Package dependencies
attrs
click
click-default-group
networkx>=2.4
pluggy
pony >= 0.7.13
rich
# Optional and test dependencies
graphviz
pexpect
pydot
commands =
pip install --no-deps -e .
pytest {posargs}
[testenv:pre-commit]
deps = pre-commit
commands = pre-commit run --all-files
[testenv:sphinx]
changedir = docs/source
conda_env = docs/rtd_environment.yml
commands =
sphinx-build -WT -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
- sphinx-build -T -b linkcheck -d {envtmpdir}/doctrees . {envtmpdir}/linkcheck
[doc8]
ignore = D002, D004
ignore-path =
docs/_build
ignore-path-errors =
docs/index.rst;D000
max-line-length = 89
[flake8]
docstring-convention = numpy
exclude =
src/_pytask/_version.py
versioneer.py
ignore =
D ; ignore missing docstrings.
E203 ; ignore whitespace around : which is enforced by Black.
W503 ; ignore linebreak before binary operator which is enforced by Black.
PT006 ; ignore that parametrizing tests with tuple argument names is preferred.
max-line-length = 88
per-file-ignores =
src/_pytask/hookspecs.py: U100
src/_pytask/outcomes.py: N818
tests/test_capture.py: T000, T001, N802, PT011
pytest-mark-no-parentheses = true
warn-symbols =
pytest.mark.wip = Remove 'wip' mark for tests.
[pytest]
addopts = --doctest-modules
filterwarnings =
ignore: the imp module is deprecated in favour of importlib
ignore: Using or importing the ABCs from 'collections' instead of from
ignore: The (parser|symbol) module is deprecated and will be removed in future
markers =
wip: Tests that are work-in-progress.
unit: Flag for unit tests which target mainly a single function.
integration: Flag for integration tests which may comprise of multiple unit tests.
end_to_end: Flag for tests that cover the whole program.
norecursedirs =
.idea
.tox