forked from GoogleCloudPlatform/functions-framework-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
29 lines (27 loc) · 739 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
[tox]
envlist = py{35,36,37,38,39,310}-{ubuntu-latest,macos-latest,windows-latest},lint
[testenv]
usedevelop = true
deps =
docker
pytest-asyncio
pytest-cov
pytest-integration
pretend
setenv =
PYTESTARGS = --cov=functions_framework --cov-branch --cov-report term-missing --cov-fail-under=100
windows-latest: PYTESTARGS =
commands = pytest {env:PYTESTARGS} {posargs}
[testenv:lint]
basepython=python3
deps =
black
twine
isort
mypy
commands =
black --check src tests setup.py conftest.py --exclude tests/test_functions/background_load_error/main.py
isort -c src tests setup.py conftest.py
mypy tests/test_typing.py
python setup.py --quiet sdist bdist_wheel
twine check dist/*