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
1021 B

  1. [tox]
  2. isolated_build = true
  3. skipsdist = true
  4. envlist = check, apply-check, docs, tests, build, changelog
  5. [testenv]
  6. allowlist_externals = poetry, ./test_keycloak_init.sh
  7. commands_pre =
  8. poetry sync
  9. [testenv:check]
  10. commands =
  11. ruff check src/keycloak tests docs
  12. codespell src tests docs
  13. [testenv:apply-check]
  14. commands =
  15. ruff check --fix src/keycloak tests docs
  16. [testenv:docs]
  17. commands =
  18. sphinx-build -T -E -W -b html -d _build/doctrees -D language=en ./docs/source _build/html
  19. [testenv:tests]
  20. setenv = file|tox.env
  21. passenv = CONTAINER_HOST,KEYCLOAK_DOCKER_IMAGE_TAG
  22. commands =
  23. ./test_keycloak_init.sh "pytest -vv --cov=keycloak --cov-report term-missing {posargs}"
  24. [testenv:build]
  25. commands =
  26. poetry build --format sdist
  27. poetry build --format wheel
  28. [testenv:changelog]
  29. setenv = file|tox.env
  30. passenv = CONTAINER_HOST
  31. commands =
  32. cz changelog
  33. [flake8]
  34. max-line-length = 99
  35. docstring-convention = all
  36. ignore = D203, D213, W503, E231
  37. docstring_style = sphinx
  38. [darglint]
  39. enable = DAR104