Skip to content

Commit

Permalink
tox: move testenv_notebooks dependencies from tox.ini to a "testenv_n…
Browse files Browse the repository at this point in the history
…otebooks" group in pyproject.toml
  • Loading branch information
muxator committed Sep 17, 2024
1 parent 4c748e0 commit e013ba1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,6 @@ darglint = "^1.8.1"
codecov = "^2.1.13"
ipython = "^8.12.2"
jupyter = "^1.0.0"
Mesa = "^2.1.1"
nbmake = "^1.5.4"
ndlib = "^5.1.1"
pydocstyle = "^6.3.0"
tox = "^4.4.12"
Expand Down Expand Up @@ -101,6 +99,10 @@ pytest = "^7.4.2"
pytest-cov = "^4.1.0"
pytest-randomly = "^3.15.0"

[tool.poetry.group.testenv_notebooks.dependencies]
Mesa = "^2.1.1"
nbmake = "^1.5.4"

[tool.poetry.group.vulture.dependencies]
vulture = "^2.9.1"

Expand Down
5 changes: 1 addition & 4 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,7 @@ commands =

# test environment for notebooks
[testenv:py{39,310,311,312}-nb]
deps =
pytest==7.4.2
mesa==2.1.1
nbmake==1.5.4
commands_pre = poetry install --only main --only testenv --only testenv_notebooks --sync
commands = pytest examples/tests_on_toy_model.ipynb --nbmake --nbmake-timeout=300

[testenv:mypy]
Expand Down

0 comments on commit e013ba1

Please sign in to comment.