Skip to content

Commit

Permalink
Expose type checking dependencies into an extra
Browse files Browse the repository at this point in the history
This will allow to add tox to mypre_primer so new versions of mypy
will be tested against it. It should also make it easier to
do type checking for plugin developers.
  • Loading branch information
ssbarnea committed Oct 15, 2024
1 parent 7c0e3ed commit fdfaa79
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,11 @@ optional-dependencies.testing = [
"time-machine>=2.15; implementation_name!='pypy'",
"wheel>=0.44",
]
optional-dependencies.type = [
"mypy==1.11.2",
"types-cachetools>=5.5.0.20240820",
"types-chardet>=5.0.4.6",
]
urls.Documentation = "https://tox.wiki"
urls.Homepage = "http://tox.readthedocs.org"
urls."Release Notes" = "https://tox.wiki/en/latest/changelog.html"
Expand Down
2 changes: 1 addition & 1 deletion tox.toml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ commands = [["pre-commit", "run", "--all-files", "--show-diff-on-failure", { rep

[env.type]
description = "run type check on code base"
deps = ["mypy==1.11.2", "types-cachetools>=5.5.0.20240820", "types-chardet>=5.0.4.6"]
extras = ["testing", "type"]
commands = [["mypy", "src{/}tox"], ["mypy", "tests"]]

[env.docs]
Expand Down

0 comments on commit fdfaa79

Please sign in to comment.