tox.ini 629 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. [tox]
  2. envlist =
  3. py27,
  4. py34,
  5. py35,
  6. py36,
  7. py37,
  8. flake8,
  9. pylint,
  10. mypy,
  11. coverage
  12. [testenv]
  13. commands=
  14. python setup.py test
  15. deps=
  16. [testenv:py27]
  17. deps =
  18. typing
  19. [testenv:flake8]
  20. commands =
  21. pip install flake8
  22. flake8 dns
  23. [testenv:pylint]
  24. commands =
  25. pip install pylint
  26. pylint dns
  27. [testenv:mypy]
  28. commands =
  29. pip install mypy
  30. mypy examples tests
  31. [testenv:coverage]
  32. basepython = python2
  33. deps =
  34. coverage
  35. commands =
  36. python setup.py install
  37. coverage run --rcfile=.coverage.ini setup.py test
  38. coverage report
  39. [pep8]
  40. show-pep8 = True
  41. show-source = True