-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtox.ini
55 lines (50 loc) · 1.05 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
[tox]
skipsdist = True
envlist =
py{39, }
lint
test
coverage
[isort]
profile = black
combine_as_imports=True
force_grid_wrap = 0
force_sort_within_sections=True
known_standard_library=pytest
line_length=21
multi_line_output=3
use_parentheses=True
ensure_newline_before_comments = True
[flake8]
max-line-length= 110
exclude= .venv*,.tox,docs,build
ignore=W503, F401, E402
[testenv:lint]
basepython=python3
skip_install = true
deps = pre-commit
commands=
pre-commit run --all-files --show-diff-on-failure
[testenv:test]
whitelist_externals = poetry
skip_install = true
setenv =
PYTHONPATH = {toxinidir}
; If you want to make tox run the tests with the same versions, use poetry
; to install the dependencies
commands =
poetry install
poetry run pytest tests
[testenv:coverage]
whitelist_externals = poetry
skip_install = true
setenv =
PYTHONPATH = {toxinidir}
deps =
coverage
pytest
commands =
poetry install
poetry run coverage run --source src -m pytest
poetry run coverage report -m
poetry run coverage html