style(tox): remove redundant envs
This commit is contained in:
parent
0b16acf68c
commit
cf7673c51c
1 changed files with 1 additions and 31 deletions
32
tox.ini
32
tox.ini
|
|
@ -5,14 +5,6 @@ isolated_build = True
|
||||||
envlist = lint, test, build, docs
|
envlist = lint, test, build, docs
|
||||||
|
|
||||||
|
|
||||||
[testenv:shell]
|
|
||||||
description = launch python shell
|
|
||||||
setenv = PYTHONPATH = {toxinidir}/src
|
|
||||||
deps =
|
|
||||||
{toxinidir}
|
|
||||||
commands =
|
|
||||||
python3
|
|
||||||
|
|
||||||
[testenv:lint]
|
[testenv:lint]
|
||||||
description = lint with pylint
|
description = lint with pylint
|
||||||
setenv = PYTHONPATH = {toxinidir}/src
|
setenv = PYTHONPATH = {toxinidir}/src
|
||||||
|
|
@ -64,14 +56,6 @@ commands =
|
||||||
sphinx-build -d "{toxinidir}/docs/_tree/_" docs . --color -W -bmarkdown -treadme {posargs}
|
sphinx-build -d "{toxinidir}/docs/_tree/_" docs . --color -W -bmarkdown -treadme {posargs}
|
||||||
|
|
||||||
|
|
||||||
[testenv:diff]
|
|
||||||
description = diff
|
|
||||||
allowlist_externals =
|
|
||||||
git
|
|
||||||
commands =
|
|
||||||
git diff --exit-code {posargs}
|
|
||||||
|
|
||||||
|
|
||||||
[testenv:format]
|
[testenv:format]
|
||||||
description = format code
|
description = format code
|
||||||
basepython = python3
|
basepython = python3
|
||||||
|
|
@ -81,20 +65,6 @@ commands =
|
||||||
python3 -m autopep8 -v src/ {posargs}
|
python3 -m autopep8 -v src/ {posargs}
|
||||||
|
|
||||||
|
|
||||||
[testenv:graph]
|
|
||||||
description = build documentation
|
|
||||||
basepython = python3
|
|
||||||
allowlist_externals =
|
|
||||||
graphviz
|
|
||||||
/bin/sh
|
|
||||||
pyan
|
|
||||||
deps =
|
|
||||||
{toxinidir}
|
|
||||||
pyan3
|
|
||||||
commands =
|
|
||||||
pyan --root {toxinidir}/src --uses --no-defines --colored --grouped --annotated --html
|
|
||||||
|
|
||||||
|
|
||||||
[testenv:publish-testpypi]
|
[testenv:publish-testpypi]
|
||||||
description = publish to pypi test repository
|
description = publish to pypi test repository
|
||||||
passenv =
|
passenv =
|
||||||
|
|
@ -145,7 +115,7 @@ commands =
|
||||||
rm -rf {env:tmppath}
|
rm -rf {env:tmppath}
|
||||||
git clone git@bitbucket.org:victorykit/victorykit.bitbucket.io.git {env:tmppath}
|
git clone git@bitbucket.org:victorykit/victorykit.bitbucket.io.git {env:tmppath}
|
||||||
mkdir -p "{env:tmppath}/{env:BITBUCKET_REPO_SLUG}"
|
mkdir -p "{env:tmppath}/{env:BITBUCKET_REPO_SLUG}"
|
||||||
cp -r dist/docs/ "{env:tmppath}/{env:BITBUCKET_REPO_SLUG}"
|
cp -r build/docs/ "{env:tmppath}/{env:BITBUCKET_REPO_SLUG}"
|
||||||
sh -c "cd {env:tmppath}; git add {env:BITBUCKET_REPO_SLUG}"
|
sh -c "cd {env:tmppath}; git add {env:BITBUCKET_REPO_SLUG}"
|
||||||
sh -c "cd {env:tmppath}; git -c 'user.name=victoryk.it Bot' -c 'user.email=commits-noreply@victoryk.it' commit -m 'updated {env:BITBUCKET_REPO_SLUG}'"
|
sh -c "cd {env:tmppath}; git -c 'user.name=victoryk.it Bot' -c 'user.email=commits-noreply@victoryk.it' commit -m 'updated {env:BITBUCKET_REPO_SLUG}'"
|
||||||
sh -c "cd {env:tmppath}; git push"
|
sh -c "cd {env:tmppath}; git push"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue