tox.ini 791 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. DOCKER_VERSION
  11. setenv =
  12. HOME=/tmp
  13. deps =
  14. -rrequirements.txt
  15. -rrequirements-dev.txt
  16. commands =
  17. py.test -v -rxs \
  18. --cov=compose \
  19. --cov-report html \
  20. --cov-report term \
  21. --cov-config=tox.ini \
  22. {posargs:tests}
  23. [testenv:pre-commit]
  24. skip_install = True
  25. deps =
  26. pre-commit
  27. commands =
  28. pre-commit install
  29. pre-commit run --all-files
  30. # Coverage configuration
  31. [run]
  32. branch = True
  33. [report]
  34. show_missing = true
  35. [html]
  36. directory = coverage-html
  37. # end coverage configuration
  38. [flake8]
  39. max-line-length = 105
  40. # Set this high for now
  41. max-complexity = 12
  42. exclude = compose/packages