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
933 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 keycloak tests docs
  12. isort -c --df keycloak tests docs
  13. flake8 keycloak tests docs
  14. [testenv:apply-check]
  15. deps =
  16. black
  17. isort
  18. flake8
  19. commands =
  20. black -C keycloak tests docs
  21. black keycloak tests docs
  22. isort keycloak tests docs
  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