tox.ini 671 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. [tox]
  2. envlist =
  3. coverage-clean,
  4. py27,
  5. py35,
  6. py36,
  7. py37,
  8. py38,
  9. py39,
  10. coverage-report,
  11. mypy
  12. [testenv]
  13. commands =
  14. coverage run -m pytest
  15. setenv =
  16. COVERAGE_FILE=.coverage.{envname}
  17. LC_ALL=en_US.UTF-8
  18. deps =
  19. .[test]
  20. coverage
  21. pytest
  22. [testenv:coverage-clean]
  23. deps = coverage
  24. setenv =
  25. COVERAGE_FILE=.coverage
  26. skip_install = true
  27. commands = coverage erase
  28. [testenv:coverage-report]
  29. deps = coverage
  30. setenv =
  31. COVERAGE_FILE=.coverage
  32. skip_install = true
  33. commands =
  34. coverage combine
  35. coverage report
  36. coverage html
  37. coverage
  38. [testenv:mypy]
  39. deps = mypy
  40. skip_install = true
  41. commands =
  42. mypy -p magic