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.

52 lines
1.1 KiB

  1. [tox]
  2. requires =
  3. tox-poetry
  4. poetry
  5. envlist = check, apply-check, docs, tests, build, changelog
  6. [testenv]
  7. whitelist_externals =
  8. bash
  9. [testenv:check]
  10. commands =
  11. black --check --diff src/keycloak tests docs
  12. isort -c --df src/keycloak tests docs
  13. flake8 src/keycloak tests docs
  14. [testenv:apply-check]
  15. commands =
  16. black -C src/keycloak tests docs
  17. black src/keycloak tests docs
  18. isort src/keycloak tests docs
  19. [testenv:docs]
  20. extras = docs
  21. commands =
  22. sphinx-build -T -E -W -b html -d _build/doctrees -D language=en ./docs/source _build/html
  23. [testenv:tests]
  24. setenv = file|tox.env
  25. passenv = CONTAINER_HOST
  26. commands =
  27. ./test_keycloak_init.sh "pytest -vv --cov=keycloak --cov-report term-missing {posargs}"
  28. [testenv:build]
  29. deps =
  30. poetry
  31. setenv =
  32. POETRY_VIRTUALENVS_CREATE = false
  33. commands =
  34. poetry build --format sdist
  35. poetry build --format wheel
  36. [testenv:changelog]
  37. setenv = file|tox.env
  38. passenv = CONTAINER_HOST
  39. commands =
  40. cz changelog --incremental
  41. [flake8]
  42. max-line-length = 99
  43. docstring-convention = all
  44. ignore = D203, D213, W503