Skip to content

Commit

Permalink
Expose type checking dependencies into an extra (#3404)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssbarnea authored Oct 15, 2024
1 parent 7c0e3ed commit f919d0d
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 f919d0d

Please sign in to comment.