Skip to content

Commit f919d0d

Browse files
authored
Expose type checking dependencies into an extra (#3404)
1 parent 7c0e3ed commit f919d0d

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

pyproject.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,11 @@ optional-dependencies.testing = [
9292
"time-machine>=2.15; implementation_name!='pypy'",
9393
"wheel>=0.44",
9494
]
95+
optional-dependencies.type = [
96+
"mypy==1.11.2",
97+
"types-cachetools>=5.5.0.20240820",
98+
"types-chardet>=5.0.4.6",
99+
]
95100
urls.Documentation = "https://tox.wiki"
96101
urls.Homepage = "http://tox.readthedocs.org"
97102
urls."Release Notes" = "https://tox.wiki/en/latest/changelog.html"

tox.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ commands = [["pre-commit", "run", "--all-files", "--show-diff-on-failure", { rep
5656

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

6262
[env.docs]

0 commit comments

Comments
 (0)