-
Notifications
You must be signed in to change notification settings - Fork 6
/
tox.ini
49 lines (43 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
[tox]
minversion = 4
# Choose your Python versions. They have to be available
# on the system the tests are run on.
envlist = py3,lint,type
isolated_build = true
[testenv]
usedevelop=True
setenv =
PYTHONASYNCIODEBUG=1
skip_install = true
allowlist_externals = poetry
deps =
poetry
commands_pre =
poetry install --with test
commands =
poetry run coverage run -m pytest -s {posargs} --import-mode importlib
poetry run coverage report -m
[testenv:lint]
commands_pre =
poetry install --with test
commands =
poetry run flake8 {posargs}
poetry run black --check --diff --line-length 120 awspub/
poetry run isort --check awspub/
[testenv:type]
commands_pre =
poetry install --with type
commands =
poetry run mypy awspub
[flake8]
show-source = True
exclude = .venv,.tox,dist,doc,build,*.egg,node_modules,.sphinx,custom_conf.py,conf.py,tomllib
max-line-length = 120
[testenv:venv]
commands = {posargs}
[testenv:format]
commands_pre =
poetry install --with test
commands =
poetry run black --line-length 120 awspub
poetry run isort awspub