tox.ini 636 B

1234567891011121314151617181920212223242526272829303132
  1. [tox]
  2. envlist = py35,py36,py37
  3. skip_missing_interpreters = True
  4. skipsdist = True
  5. minversion = 3.10.0
  6. [testenv]
  7. usedevelop = True
  8. deps = -rtest_requirements.txt
  9. whitelist_externals = sh
  10. install_command =
  11. sh scripts/pip {opts} {packages}
  12. commands =
  13. pytest
  14. py36,py37: black --check .
  15. isort --recursive --check-only --settings-path setup.cfg .
  16. flake8 .
  17. [testenv:black]
  18. basepython = python3.7
  19. commands =
  20. black .
  21. [testenv:end-to-end]
  22. deps = -rtest_requirements.txt
  23. commands =
  24. pytest tests/end-to-end
  25. [testenv:isort]
  26. deps = {[testenv]deps}
  27. commands =
  28. isort {posargs:--recursive} --settings-path setup.cfg .