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.

46 lines
970 B

  1. [tox]
  2. requires =
  3. tox-poetry
  4. poetry
  5. envlist = check, apply-check, docs, tests, build
  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. [flake8]
  37. max-line-length = 99
  38. docstring-convention = all
  39. ignore = D203, D213, W503