forked from GoogleCloudPlatform/functions-framework-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
26 lines (24 loc) · 733 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
[tox]
envlist = py{35,36,37,38,39,310}-{ubuntu-latest,macos-latest,windows-latest},lint
[testenv]
usedevelop = true
deps =
docker<5 # https://github.com/docker/docker-py/issues/2807
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
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
python setup.py --quiet sdist bdist_wheel
twine check dist/*