Skip to content

Commit 20c5498

Browse files
committed
Workaround mixed types in pyproject toml table
1 parent eaf7836 commit 20c5498

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

noxfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ def typecheck(session: nox.Session) -> None:
178178
session,
179179
"install",
180180
"--group",
181-
"type-check",
181+
"all",
182182
)
183183

184184
session.run(

pyproject.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ all-optional = ["keyring"]
9898
nox = ["nox"] # noxfile.py
9999
update-rtd-redirects = ["httpx", "rich", "PyYAML"] # tools/update-rtd-redirects.py
100100

101-
type-check = [
101+
type-checking = [
102102
# Actual type checker:
103103
"mypy",
104104

@@ -109,13 +109,15 @@ type-check = [
109109
"types-setuptools", # test dependency and used in distutils_hack
110110
"types-six", # via python-dateutil via freezegun (test dependency)
111111
"types-PyYAML", # update-rtd-redirects dependency
112+
]
112113

113-
# Everything else that could contain type hints:
114+
all = [
114115
{include-group = "test"},
115116
{include-group = "docs"},
116117
{include-group = "nox"},
117118
{include-group = "all-optional"},
118119
{include-group = "update-rtd-redirects"},
120+
{include-group = "type-checking"},
119121
]
120122

121123
[tool.setuptools]

0 commit comments

Comments
 (0)