-
Notifications
You must be signed in to change notification settings - Fork 5
/
tox.ini
43 lines (39 loc) · 871 Bytes
/
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
[flake8]
max-line-length = 99
max-complexity = 12
ignore = E203, E266, E501, W503, E741
exclude =
.git,
.tox,
.pytest_cache,
.mypy_cache,
htmlcov,
__pycache__,
build,
*.egg-info,
dist
per-file-ignores =
test/*: D1
[tox]
isolated_build = true
envlist = py38, py39, py310, py311, flake8, mypy
[testenv]
allowlist_externals = poetry
commands =
poetry run pip install -U pip setuptools
poetry install --no-root -v
poetry run pytest test/
[testenv:flake8]
basepython=python3.8
allowlist_externals = poetry
commands =
poetry run pip install -U pip setuptools
poetry install --no-root -v
poetry run flake8 business --statistics
[testenv:mypy]
basepython=python3.8
allowlist_externals = poetry
commands =
poetry run pip install -U pip setuptools
poetry install --no-root -v
poetry run mypy business