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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. [tox]
  2. envlist =
  3. py{36,37,38,39}-django{22,31,32}
  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. django22: django>=2.2,<2.3
  13. django31: django>=3.1,<3.2
  14. django32: django>=3.2,<3.3
  15. [testenv:lint]
  16. basepython = python3.7
  17. deps =
  18. -r{toxinidir}/requirements.txt
  19. allowlist_externals = npm
  20. commands =
  21. npm ci
  22. flake8 src tests setup.py
  23. isort -c -q --diff src/ tests/
  24. npm run eslint
  25. django-admin.py compilemessages
  26. [testenv:sandbox]
  27. basepython = python3.7
  28. deps =
  29. -r{toxinidir}/requirements.txt
  30. django>=2.2,<2.3
  31. allowlist_externals = make
  32. commands =
  33. make build_sandbox
  34. [testenv:docs]
  35. basepython = python3.7
  36. allowlist_externals = make
  37. changedir = {toxinidir}/docs
  38. pip_pre = false
  39. deps =
  40. -r{toxinidir}/docs/requirements.txt
  41. commands =
  42. make html