-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue #241 - Add tox config and update gitignore
Add stripped down version of tox config from Core. This has python-version specific testing removed since we don't have a test suite (in python) to exercise stuff. Note, the tox runs won't work currently due to required changes that are pending in other PRs.
- Loading branch information
Showing
2 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
build/ | ||
dist/ | ||
.tox/ | ||
|
||
*.pyc | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
[tox] | ||
envlist = | ||
docs | ||
lint | ||
|
||
isolated_build = True | ||
|
||
[testenv:docs] | ||
setenv = AIT_CONFIG = {toxinidir}/config/config.yaml | ||
whitelist_externals = poetry | ||
commands_pre = | ||
poetry install | ||
commands = | ||
poetry run sphinx-build doc/source doc/build | ||
basepython = python3.10 | ||
|
||
[testenv:lint] | ||
setenv = AIT_CONFIG = {toxinidir}/config/config.yaml | ||
commands_pre = | ||
poetry install | ||
commands= | ||
python -m pre_commit run --color=always {posargs:--all} | ||
basepython = python3.10 | ||
|
||
[testenv:distcheck] | ||
skip_install = true | ||
deps = | ||
twine | ||
poetry | ||
commands = | ||
poetry build | ||
poetry run twine check dist/* |