-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtox.ini
64 lines (58 loc) · 1.25 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
[tox]
skipsdist = True
envlist =
py{39, }
test
lint
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= 105
exclude= venv*,.tox,docs,build
ignore=W503, F401, E203
[mypy]
warn_unused_ignores = True
check_untyped_defs = True
disallow_incomplete_defs = True
disallow_untyped_defs = True
disallow_any_generics = True
warn_unused_configs = True
strict_equality = True
[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}
deps = pytest-cov
; If you want to make tox run the tests with the same versions, use poetry
; to install the dependencies
commands =
poetry install -v
poetry run pytest tests/
[testenv:coverage]
whitelist_externals = poetry
skip_install = true
setenv =
PYTHONPATH = {toxinidir}
deps =
coverage
pytest
commands =
poetry run coverage run --source solutions -m pytest
poetry run coverage report -m
poetry run coverage html