File size: 1,024 Bytes
550665c |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 |
[tox]
envlist = pytest, code-cov, flake8, sphinx
[gh-actions]
python =
3.6: pytest
3.7: pytest
3.8: pytest
3.9: pytest
3.10: pytest
3.11: pytest
3.12: pytest, flake8, sphinx
[flake8]
max-line-length = 120
per-file-ignores =
# naming conventions broken by googleapiclient
tests/google_calendar_tests/mock_services/*: N802,N803
[coverage:report]
exclude_lines =
# Have to re-enable the standard pragma
pragma: no cover
# Don't complain if tests don't hit defensive assertion code:
pass
omit =
*/__init__.py
[testenv:pytest]
deps =
pyfakefs
pytest
commands =
pytest
[testenv:coverage]
deps =
pyfakefs
pytest
pytest-cov
commands =
pytest --cov-report xml --cov=gcsa tests
[testenv:flake8]
deps =
flake8
pep8-naming
commands =
flake8 gcsa tests setup.py
[testenv:sphinx]
deps =
sphinx
sphinx_rtd_theme
commands =
sphinx-build -W docs/source docs/build
|