forked from PythonFreeCourse/calendar
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
43 lines (31 loc) · 775 Bytes
/
Copy pathtox.ini
File metadata and controls
43 lines (31 loc) · 775 Bytes
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
[tox]
skipsdist = True
envlist = cov, flake8
[testenv]
basepython = python3
deps = -rrequirements.txt
[testenv:rep]
commands =
pytest --cov=app --cov-report=html
[testenv:cov]
commands =
pytest --cov=app
[testenv:flake8]
deps = flake8
commands =
flake8 app
flake8 tests
# Pytest configuration
[pytest]
junit_family = xunit2
testpaths = tests
filterwarnings =
ignore:.*'collections'.*'collections.abc'.*:DeprecationWarning
ignore:Task.all_tasks() is deprecated, use asyncio.all_tasks().*:PendingDeprecationWarning
# Flake8 configuration
[flake8]
# gettext() adds _() to the global namespace. This lets flake recognize it.
builtins =
_,
# https://github.com/psf/black/blob/master/docs/the_black_code_style.md#slices
extend-ignore = E203