This repository has been archived by the owner on Nov 25, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
82 lines (69 loc) · 1.67 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
# tox (https://tox.readthedocs.io/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
[tox]
envlist =
pre-commit
check_types
doctest
test_unit
test_prop
skipsdist = True
[flake8]
exclude =
stubs
ignore =
I101 # Alphabetical order in one import line.
W503 # This warning not PEP 8 compliant, so black recommends ignoring it.
import-order-style = pycharm
max-line-length = 120
application-import-names =
analysis
modules
scripts
tests
[coverage:run]
source =
modules/
[coverage:report]
# Regexes for lines to exclude from consideration
exclude_lines =
# Have to re-enable the standard pragma
pragma: no cover
# Don't complain if an error isn't run:
raise ValueError
# Don't complain if non-runnable code isn't run:
if __name__ == .__main__.:
[testenv:pre-commit]
deps =
-r requirements/pre-commit.txt
commands =
pre-commit run --all-files
[testenv:check_types]
deps =
-r requirements/base.txt
-r requirements/base_test.txt
-r requirements/property.txt
-r requirements/types.txt
commands =
pytype .
[testenv:doctest]
deps =
-r requirements/base.txt
-r requirements/base_test.txt
commands =
pytest --doctest-modules modules/ analysis/
[testenv:test_unit]
deps =
-r requirements/base.txt
-r requirements/base_test.txt
commands =
pytest tests/unit/
[testenv:test_prop]
deps =
-r requirements/base.txt
-r requirements/base_test.txt
-r requirements/property.txt
commands =
pytest tests/property/