pyproject.toml 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. [build-system]
  2. requires = ["setuptools>=30.3.0", "wheel", "setuptools_scm"]
  3. [tool.pytest.ini_options]
  4. testpaths = "tests"
  5. addopts = "--cov axes --cov-append --cov-branch --cov-report term-missing --cov-report=xml"
  6. DJANGO_SETTINGS_MODULE = "tests.settings"
  7. [tool.tox]
  8. legacy_tox_ini = """
  9. [tox]
  10. envlist =
  11. py{36,37,38,39,py3}-dj{22,30,31}
  12. py{38,39}-dj{dev}
  13. py38-djqa
  14. [gh-actions]
  15. python =
  16. 3.6: py36
  17. 3.7: py37
  18. 3.8: py38
  19. 3.9: py39
  20. pypy3: pypy3
  21. [gh-actions:env]
  22. DJANGO =
  23. 2.2: dj22
  24. 3.0: dj30
  25. 3.1: dj31
  26. dev: djdev
  27. qa: djqa
  28. # Normal test environment runs pytest which orchestrates other tools
  29. [testenv]
  30. deps =
  31. -r requirements-test.txt
  32. dj22: django>=2.2,<2.3
  33. dj30: django>=3.0,<3.1
  34. dj31: django>=3.1,<3.2
  35. djdev: https://github.com/django/django/archive/master.tar.gz
  36. usedevelop = true
  37. commands = pytest
  38. setenv =
  39. PYTHONDONTWRITEBYTECODE=1
  40. # Django development version is allowed to fail the test matrix
  41. [testenv:py{38,39,py3}-dj{dev}]
  42. ignore_errors = true
  43. ignore_outcome = true
  44. # QA runs type checks, linting, and code formatting checks
  45. [testenv:py38-djqa]
  46. deps = -r requirements-qa.txt
  47. commands =
  48. mypy axes
  49. prospector
  50. black -t py36 --check --diff axes
  51. """