tox.ini 734 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. [tox]
  2. envlist = py27,py34,pre-commit
  3. [testenv]
  4. usedevelop=True
  5. passenv =
  6. LD_LIBRARY_PATH
  7. DOCKER_HOST
  8. DOCKER_CERT_PATH
  9. DOCKER_TLS_VERIFY
  10. setenv =
  11. HOME=/tmp
  12. deps =
  13. -rrequirements-dev.txt
  14. commands =
  15. py.test -v \
  16. --cov=compose \
  17. --cov-report html \
  18. --cov-report term \
  19. --cov-config=tox.ini \
  20. {posargs:tests}
  21. [testenv:pre-commit]
  22. skip_install = True
  23. deps =
  24. pre-commit
  25. commands =
  26. pre-commit install
  27. pre-commit run --all-files
  28. # Coverage configuration
  29. [run]
  30. branch = True
  31. [report]
  32. show_missing = true
  33. [html]
  34. directory = coverage-html
  35. # end coverage configuration
  36. [flake8]
  37. # Allow really long lines for now
  38. max-line-length = 140
  39. exclude = compose/packages