tox.ini 703 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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 --source=magic ./test/test.py
  15. setenv =
  16. COVERAGE_FILE=.coverage.{envname}
  17. LC_ALL=en_US.UTF-8
  18. deps =
  19. .[test]
  20. zope.testrunner
  21. coverage
  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 magic.pyi