Files
PyGithub/tox.ini
T
Steve Kowalik b30c09aaa4 Create a tox docs environment (#1426)
To make it easier to build documentation locally, add a new tox
environment that installs our requirements and runs Sphinx.
2020-03-08 16:36:52 +11:00

50 lines
925 B
INI

[tox]
envlist =
py{35,36,37,38},
flake8,
isort,
black
[testenv]
deps = -rtest-requirements.txt
commands = pytest --cov=github {posargs}
[testenv:flake8]
basepython = python3.6
skip_install = true
deps = flake8
commands = flake8 github tests scripts setup.py
[testenv:isort]
basepython = python3.6
skip_install = true
deps = isort
commands = isort --check -rc github tests scripts setup.py
[testenv:black]
basepython = python3.6
skip_install = true
deps = black
commands = black --check --diff github tests scripts setup.py
[testenv:format]
basepython = python3.6
skip_install = true
deps =
black
isort
commands =
isort -rc github tests scripts setup.py
black github tests scripts setup.py
[testenv:docs]
basepython = python3.6
skip_install = true
deps = -rrequirements.txt
commands = sphinx-build doc build
[flake8]
max-line-length = 88
select = C,E,F,W
ignore = E203, E266, E501, W503