-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
48 lines (44 loc) · 1.32 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
[tox]
envlist = pytest
skipsdist = True
skip_missing_interpreters = True
[testenv]
basepython = python
[testenv:pytest]
conda_deps =
pytask >=0.0.7
pytest
pytest-cov
conda_channels =
conda-forge
nodefaults
commands =
pip install -e .
pytest {posargs}
[flake8]
docstring-convention = numpy
ignore =
D
E203 ; ignores whitespace around : which is enforced by Black.
W503 ; ignores linebreak before binary operator which is enforced by Black.
PT006 ; ignores that parametrizing tests with tuple argument names is preferred.
PT023 ; ignores parentheses for marks.
max-line-length = 88
warn-symbols =
pytest.mark.wip = Remove 'wip' flag for tests.
pytest.mark.skip = Remove 'skip' flag 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 module is deprecated and will
ignore: The symbol module is deprecated
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