Skip to content

Commit

Permalink
tox: move mypy dependencies from tox.ini to a "mypy" group in pyproje…
Browse files Browse the repository at this point in the history
…ct.toml
  • Loading branch information
muxator committed Sep 17, 2024
1 parent 2ff4b02 commit 4c748e0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 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.

7 changes: 6 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ codecov = "^2.1.13"
ipython = "^8.12.2"
jupyter = "^1.0.0"
Mesa = "^2.1.1"
mypy = "^1.5.1"
nbmake = "^1.5.4"
ndlib = "^5.1.1"
pydocstyle = "^6.3.0"
Expand All @@ -86,6 +85,12 @@ mkdocstrings = "^0.22.0"
mknotebooks = "^0.8.0"
pymdown-extensions = "^10.3"

[tool.poetry.group.mypy.dependencies]
# importlib-metadata==6.8.0
mypy = "^1.5.1"
# types-backports==0.1.3
# types-setuptools==68.2.0.0

[tool.poetry.group.ruff.dependencies]
ruff = "^0.0.290"

Expand Down
8 changes: 1 addition & 7 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,7 @@ commands = pytest examples/tests_on_toy_model.ipynb --nbmake --nbmake-timeout=30

[testenv:mypy]
deps =
hypothesis[numpy]==6.82.6
importlib-metadata==6.8.0
mistletoe==1.2.1
mypy==1.5.1
pytest==7.4.2
types-backports==0.1.3
types-setuptools==68.2.0.0
commands_pre = poetry install --only main --only testenv --only mypy --sync
commands =
mypy black_it tests scripts examples

Expand Down

0 comments on commit 4c748e0

Please sign in to comment.