Skip to content

Commit

Permalink
update tox.ini file contents
Browse files Browse the repository at this point in the history
  • Loading branch information
kulgan committed Sep 23, 2021
1 parent 012d330 commit 24e75dc
Showing 1 changed file with 29 additions and 4 deletions.
33 changes: 29 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,41 @@ exclude =
*.pyc
.eggs

[testenv:lint]
extras =
lint

testenv:lint]
skip_install = True
commands_pre =
deps =
mypy
pre-commit
whitelist_externals =
bash

commands =
pre-commit run --all-files --show-diff-on-failure {posargs: }
bash mypy

[testenv:docs]
commands =
sphinx-build docs/source docs/build -b html

[testenv:release]
basepython = python3
deps =
build
twine
passenv =
TWINE_PASSWORD
TWINE_REPOSITORY
setenv =
TWINE_USERNAME = {env:TWINE_USERNAME:__token__}
commands =
python -c "import shutil; shutil.rmtree('dist', ignore_errors=True)"
python -m build
python -m twine upload dist/*

[testenv:changelog]
basepython = python3
extras =
changelog
commands =
python3 bin/release changelog --no-draft

0 comments on commit 24e75dc

Please sign in to comment.