-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
31 lines (27 loc) · 749 Bytes
/
tox.ini
File metadata and controls
31 lines (27 loc) · 749 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
[tox]
skipsdist = true
envlist = clean, format, lint, python3.7, python3.8, python3.9, python3.10
[testenv]
allowlist_externals = poetry
commands =
poetry install -v
poetry run pytest --color=yes --cov=python_starter --cov-append --cov-report=term-missing --cov-fail-under=50
[testenv:clean]
basepython = python3.10
allowlist_externals = poetry
skip_install = true
commands = poetry run coverage erase
[testenv:format]
basepython = python3.10
skip_install = true
allowlist_externals = poetry
commands =
poetry run isort python_starter tests
poetry run black python_starter tests
[testenv:lint]
basepython = python3.10
skip_install = true
allowlist_externals = poetry
commands =
poetry run flake8
poetry run mypy --strict