-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
63 lines (55 loc) · 1.59 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
[tox]
envlist = pytest, 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-cookies
pytest-cov
pytest-xdist
# Package dependencies
pytask
commands =
pytest {posargs}
[pytask]
paths = ./src/{{ cookiecutter.project_slug }}
[doc8]
ignore = D004
max-line-length = 88
[flake8]
docstring-convention = numpy
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