-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
62 lines (55 loc) · 1023 Bytes
/
Copy pathtox.ini
File metadata and controls
62 lines (55 loc) · 1023 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
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
[tox]
envlist = py38,py39,py310
isolated_build = True
[gh-actions]
python =
3.8: py38
3.9: py39
3.10: py310
# Format files according to black
[testenv:black]
skip_install = True
deps = black
commands =
black webhook_utils
black tests
# Check code style
[testenv:black-check]
skip_install = True
deps = black
commands =
black --check webhook_utils
black --check tests
# Sort imports
[testenv:isort]
skip_install = True
deps = isort
commands =
isort webhook_utils
isort tests
# Check code imports
[testenv:isort-check]
skip_install = True
deps = isort
commands =
isort --check-only webhook_utils
isort --check-only tests
# Check code formatting
[testenv:flake8]
skip_install = True
deps =
flake8
flake8-print
commands =
flake8 webhook_utils
flake8 tests
[testenv]
allowlist_externals = poetry
extras =
httpx
fastapi
setenv =
PYTHONHASHSEED=0
commands =
poetry install
pytest -n auto --spec --cov-report=xml --cov=webhook_utils/ {posargs}