-
Notifications
You must be signed in to change notification settings - Fork 2
/
tox.ini
51 lines (42 loc) · 782 Bytes
/
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
[tox]
envlist = pytest, code-cov, flake8
[gh-actions]
python =
3.6: pytest
3.7: pytest
3.8: pytest
3.9: pytest
3.10: pytest
3.11: pytest, flake8
[flake8]
max-line-length = 120
exclude = __init__.py
[coverage:report]
exclude_lines =
# Have to re-enable the standard pragma
pragma: no cover
# Don't complain if tests don't hit defensive assertion code:
pass
omit =
*/__init__.py
[testenv:pytest]
deps =
pyfakefs
pytest
freezegun
commands =
pytest
[testenv:coverage]
deps =
pyfakefs
pytest
pytest-cov
freezegun
commands =
pytest --cov-report xml --cov=beautiful_date beautiful_tests
[testenv:flake8]
deps =
flake8
pep8-naming
commands =
flake8 beautiful_date beautiful_tests setup.py