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

  1. [tox]
  2. envlist = check, apply-check, docs, tests, build
  3. [testenv]
  4. install_command = pip install {opts} {packages}
  5. [testenv:check]
  6. deps =
  7. black
  8. isort
  9. flake8
  10. commands =
  11. black --check --diff src/keycloak tests docs setup.py
  12. isort -c --df src/keycloak tests docs setup.py
  13. flake8 src/keycloak tests docs setup.py
  14. [testenv:apply-check]
  15. deps =
  16. black
  17. isort
  18. flake8
  19. commands =
  20. black -C src/keycloak tests docs setup.py
  21. black src/keycloak tests docs setup.py
  22. isort src/keycloak tests docs setup.py
  23. [testenv:docs]
  24. deps =
  25. .[docs]
  26. commands =
  27. python -m sphinx -T -E -W -b html -d _build/doctrees -D language=en ./docs/source _build/html
  28. [testenv:tests]
  29. setenv = file|tox.env
  30. deps =
  31. -rrequirements.txt
  32. -rdev-requirements.txt
  33. commands =
  34. ./test_keycloak_init.sh "pytest -vv --cov=keycloak --cov-report term-missing {posargs}"
  35. [testenv:build]
  36. deps =
  37. -rdev-requirements.txt
  38. commands =
  39. python setup.py sdist bdist_wheel
  40. [flake8]
  41. max-line-length = 99