-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
53 lines (46 loc) · 864 Bytes
/
tox.ini
File metadata and controls
53 lines (46 loc) · 864 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
44
45
46
47
48
49
50
51
52
53
[tox]
envlist = py38, py39, py310, lint, type
isolated_build = True
[testenv]
deps =
pytest>=6.0
pytest-cov>=2.0
pytest-asyncio>=0.15.1
commands =
pytest {posargs:tests}
[testenv:lint]
deps =
black>=21.7b0
isort>=5.9.3
flake8>=3.9.2
commands =
black .
isort .
flake8 .
[testenv:type]
deps =
mypy>=0.910
commands =
mypy backend
[flake8]
max-line-length = 88
extend-ignore = E203
exclude = .git,__pycache__,build,dist,.tox,.eggs
[pytest]
testpaths = tests
python_files = test_*.py
python_classes = Test*
python_functions = test_*
addopts = --cov=backend --cov-report=term-missing
[coverage:run]
source = backend
omit = tests/*
[coverage:report]
exclude_lines =
pragma: no cover
def __repr__
if self.debug:
raise NotImplementedError
if __name__ == .__main__.:
pass
raise ImportError