Skip to content

Commit

Permalink
Issue #241 - Add tox config and update gitignore
Browse files Browse the repository at this point in the history
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
MJJoyce committed Jan 19, 2023
1 parent 12d5a19 commit 92554f1
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
build/
dist/
.tox/

*.pyc

Expand Down
32 changes: 32 additions & 0 deletions tox.ini
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/*

0 comments on commit 92554f1

Please sign in to comment.