forked from spec-first/connexion
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
41 lines (37 loc) · 1005 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
[flake8]
exclude=connexion/__init__.py
rst-roles=class,mod,obj
# https://black.readthedocs.io/en/stable/guides/using_black_with_other_tools.html#flake8
# Longest docstring in current code base
max-line-length=137
extend-ignore=E203
[tox]
isolated_build = True
envlist =
{py37,py38,py39,py310}-{min,pypi}
pre-commit
[gh-actions]
python =
3.7: py37-min,py37-pypi
3.8: py38-min,py38-pypi
3.9: py39-min,py39-pypi
3.10: py310-min,py310-pypi,pre-commit
[testenv]
setenv=PYTHONPATH = {toxinidir}:{toxinidir}
deps=
poetry
allowlist_externals=
cp
sed
mv
commands=
min: cp pyproject.toml .pyproject.toml
min: sed -i -E 's/"(\^|~|>=)([ 0-9])/"==\2/' pyproject.toml
poetry lock
poetry install --all-extras --with tests
poetry show
poetry run python -m pytest tests --cov connexion --cov-report term-missing
min: mv -f .pyproject.toml pyproject.toml
[testenv:pre-commit]
deps=pre-commit
commands=pre-commit run --all-files --show-diff-on-failure