Skip to content

Commit

Permalink
fix: update tox
Browse files Browse the repository at this point in the history
  • Loading branch information
Revathyvenugopal162 committed Oct 4, 2024
1 parent 49dfcdc commit 9792fd2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ packages = [
]

[tool.poetry.dependencies]
python = ">=3.9,<3.13"
python = "^3.9"
numpy = ">=1.17"
pandas = ">=1.3.2"
pyvista = ">=0.38.6"
Expand All @@ -47,7 +47,7 @@ sphinx-notfound-page = "^1.0.0"
sphinxemoji = "^0.3.1"


[tool.poetry.group.test.dependencies]
[tool.poetry.group.tests.dependencies]
pytest = "^8.3.3"
pytest-cov = "^5.0.0"

Expand Down
7 changes: 4 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
[tox]
description = Default tox environments list
envlist =
style,{py310,py311,py312}{,-coverage},doc
style,{py39,py310,py311,py312}{,-coverage},doc
skip_missing_interpreters = true
isolated_build = true
isolated_build_env = build
[gh-actions]
description = The tox environment to be executed in gh-actions for a given python version
python =
3.9: style,py39-coverage,doc
3.10: style,py310-coverage,doc
3.11: style,py311-coverage,doc
3.12: style,py312-coverage,doc
Expand All @@ -24,7 +25,7 @@ setenv =
cov: PYTEST_EXTRA_ARGS = --cov=pytwin --cov-report=term --cov-report=xml --cov-report=html
extras = tests
commands =
pytest {env:PYTEST_MARKERS:} {env:PYTEST_EXTRA_ARGS:} {posargs:-vv}
poetry run pytest {env:PYTEST_MARKERS:} {env:PYTEST_EXTRA_ARGS:} {posargs:-vv}

[testenv:style]
description = Checks project code style
Expand All @@ -40,4 +41,4 @@ description = Check if documentation generates properly
extras = doc
allowlist_externals=*
commands =
sphinx-build -d "{toxworkdir}/doc_doctree" doc/source "{toxworkdir}/doc_out" --color -vW -bhtml
poetry run sphinx-build -d "{toxworkdir}/doc_doctree" doc/source "{toxworkdir}/doc_out" --color -vW -bhtml

0 comments on commit 9792fd2

Please sign in to comment.