mirror of
https://github.com/status-im/PyGithub.git
synced 2026-09-02 03:41:08 +00:00
To make it easier to build documentation locally, add a new tox environment that installs our requirements and runs Sphinx.
50 lines
925 B
INI
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
|