tox.ini 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. [tox]
  2. envlist = py37, py38, py39, coverage, flake8, pylint
  3. [gh-actions]
  4. python =
  5. 3.7: py37, coverage, flake8, pylint
  6. 3.8: py38, coverage, flake8, pylint
  7. 3.9: py39, coverage, flake8, pylint
  8. [testenv]
  9. deps =
  10. pytest
  11. coverage
  12. -rrequirements.txt
  13. commands = coverage run -m pytest {posargs}
  14. [testenv:coverage]
  15. deps = coverage
  16. skip_install = true
  17. commands =
  18. coverage report
  19. coverage html
  20. [testenv:flake8]
  21. deps =
  22. flake8
  23. commands = flake8 --count --show-source --statistics
  24. [testenv:pylint]
  25. deps =
  26. pylint
  27. wont_fix = invalid-name,protected-access,too-many-lines
  28. maybe_someday = fixme,missing-docstring,line-too-long
  29. commands = pylint --disable={[testenv:pylint]wont_fix},{[testenv:pylint]maybe_someday} --ignore=axes_pb2.py Lib/axisregistry
  30. [flake8]
  31. select = E,F,W
  32. exclude =
  33. # Exclude the entire build directory:
  34. build
  35. # Exclude these auto-generated files that should not be hand-edited:
  36. Lib/axisregistry/*_pb2.py,
  37. # No need to traverse hidden directories such as .git, .tox
  38. .*,
  39. # Exclude virtual environment directory:
  40. venv*,
  41. # There's no value in checking cache directories
  42. __pycache__,
  43. max-line-length=100
  44. ignore =
  45. E126, # continuation line over-indented for hanging indent