You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
1011 B
48 lines
1011 B
[tox]
|
|
envlist = check, apply-check, docs, tests, build
|
|
|
|
[testenv]
|
|
install_command = pip install {opts} {packages}
|
|
|
|
[testenv:check]
|
|
deps =
|
|
black
|
|
isort
|
|
flake8
|
|
commands =
|
|
black --check --diff src/keycloak tests docs setup.py
|
|
isort -c --df src/keycloak tests docs setup.py
|
|
flake8 src/keycloak tests docs setup.py
|
|
|
|
[testenv:apply-check]
|
|
deps =
|
|
black
|
|
isort
|
|
flake8
|
|
commands =
|
|
black -C src/keycloak tests docs setup.py
|
|
black src/keycloak tests docs setup.py
|
|
isort src/keycloak tests docs setup.py
|
|
|
|
[testenv:docs]
|
|
deps =
|
|
.[docs]
|
|
commands =
|
|
python -m sphinx -T -E -W -b html -d _build/doctrees -D language=en ./docs/source _build/html
|
|
|
|
[testenv:tests]
|
|
setenv = file|tox.env
|
|
deps =
|
|
-rrequirements.txt
|
|
-rdev-requirements.txt
|
|
commands =
|
|
./test_keycloak_init.sh "pytest -vv --cov=keycloak --cov-report term-missing {posargs}"
|
|
|
|
[testenv:build]
|
|
deps =
|
|
-rdev-requirements.txt
|
|
commands =
|
|
python setup.py sdist bdist_wheel
|
|
|
|
[flake8]
|
|
max-line-length = 99
|