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.

tox.ini 917B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. [tox]
  2. envlist =
  3. py{38,39,310,311}-django{32,40,41,42}
  4. lint
  5. sandbox
  6. docs
  7. [testenv]
  8. commands = coverage run --parallel -m pytest {posargs}
  9. extras = test
  10. pip_pre = true
  11. deps =
  12. django32: django>=3.2,<3.3
  13. django40: django>=4.0,<4.1
  14. django41: django>=4.1,<4.2
  15. django42: django>=4.2,<4.3
  16. [testenv:lint]
  17. basepython = python3.11
  18. deps =
  19. -r{toxinidir}/requirements.txt
  20. allowlist_externals = npm
  21. commands =
  22. npm ci
  23. flake8 src tests setup.py
  24. isort -c -q --diff src/ tests/
  25. npm run eslint
  26. django-admin.py compilemessages
  27. [testenv:sandbox]
  28. basepython = python3.11
  29. deps =
  30. -r{toxinidir}/requirements.txt
  31. django>=4.2,<4.3
  32. allowlist_externals = make
  33. commands =
  34. make build_sandbox
  35. [testenv:docs]
  36. basepython = python3.11
  37. allowlist_externals = make
  38. changedir = {toxinidir}/docs
  39. pip_pre = false
  40. deps =
  41. -r{toxinidir}/docs/requirements.txt
  42. commands =
  43. make html