Skip to content

Commit

Permalink
Tox updates:
Browse files Browse the repository at this point in the history
* Move tox configurion to tox.ini until
  tox-dev/tox#999 is addressed.
* Run tox on 3.9 - 3.11
* Improve poetry compatibility
* Add isort
  • Loading branch information
Jörn Heissler committed Mar 18, 2023
1 parent c75590b commit 24ae71f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
16 changes: 0 additions & 16 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,22 +55,6 @@ classifiers = [
[tool.black]
line-length = 96

[tool.tox]
legacy_tox_ini = """
[tox]
skipsdist = True
envlist = py37, py38, py39
[testenv]
skip_install = true
whitelist_externals = poetry
commands =
poetry install -vvv
poetry run mypy --strict --no-strict-equality pvss tests
poetry run coverage erase
poetry run coverage run -m pytest -v --strict tests
poetry run coverage html
"""

[tool.coverage]
[tool.coverage.report]
Expand Down
16 changes: 16 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[tox]
isolated_build = true
skipsdist = true
envlist = py39, py310, py311

[testenv]
skip_install = true
allowlist_externals = poetry
commands_pre =
poetry install
commands =
poetry run mypy --strict --no-strict-equality pvss tests
poetry run coverage erase
poetry run coverage run -m pytest -v --strict-markers tests
poetry run coverage html
poetry run isort -c --diff pvss tests

0 comments on commit 24ae71f

Please sign in to comment.