tox.ini 789 B

123456789101112131415161718192021222324252627282930313233343536
  1. [tox]
  2. envlist = lint, py3{7,8,9}, pypy3, coverage-report
  3. skip_missing_interpreters = true
  4. [testenv]
  5. deps =
  6. -r requirements.txt
  7. -r test_requirements.txt
  8. ; download the latest pip, setuptools and wheel when creating the venv
  9. download = true
  10. commands =
  11. coverage run --parallel-mode -m pytest {posargs}
  12. [testenv:lint]
  13. skip_install = true
  14. deps =
  15. -r test_requirements.txt
  16. commands =
  17. black --check --diff --extend-exclude "_version.py|axes*" .
  18. [testenv:coverage-report]
  19. skip_install = true
  20. commands =
  21. coverage combine
  22. coverage xml
  23. coverage report
  24. coverage html
  25. [flake8]
  26. select = C, E, F, W, B, B9
  27. ignore = E203, E266, E501, W503
  28. max-line-length = 88
  29. exclude = .git, __pycache__, build, dist, .eggs, .tox, venv, venv*, .venv, .venv*
  30. [isort]
  31. profile = black