Skip to content

Commit a266479

Browse files
authored
Merge pull request #166 from dmtucker/deps
Upgrade static and publishing deps
2 parents a2ca9a8 + 4300a1b commit a266479

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

src/pytest_mypy.py

-5
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,6 @@ def pytest_collect_file(path, parent): # type: ignore
138138

139139

140140
class MypyFile(pytest.File):
141-
142141
"""A File that Mypy will run on."""
143142

144143
@classmethod
@@ -161,7 +160,6 @@ def collect(self):
161160

162161

163162
class MypyItem(pytest.Item):
164-
165163
"""A Mypy-related test Item."""
166164

167165
MARKER = "mypy"
@@ -194,7 +192,6 @@ def repr_failure(self, excinfo):
194192

195193

196194
class MypyFileItem(MypyItem):
197-
198195
"""A check for Mypy errors in a File."""
199196

200197
def runtest(self):
@@ -221,7 +218,6 @@ def reportinfo(self):
221218

222219

223220
class MypyStatusItem(MypyItem):
224-
225221
"""A check for a non-zero mypy exit status."""
226222

227223
def runtest(self):
@@ -233,7 +229,6 @@ def runtest(self):
233229

234230
@attr.s(frozen=True, kw_only=True)
235231
class MypyResults:
236-
237232
"""Parsed results from Mypy."""
238233

239234
_abspath_errors_type = Dict[str, List[str]]

tox.ini

+5-5
Original file line numberDiff line numberDiff line change
@@ -57,18 +57,18 @@ testpaths = tests
5757
passenv = TWINE_*
5858
constrain_package_deps = false
5959
deps =
60-
build[virtualenv] ~= 0.9.0
61-
twine ~= 4.0.0
60+
build[virtualenv] ~= 1.0.0
61+
twine ~= 5.0.0
6262
commands =
6363
{envpython} -m build --outdir {envtmpdir} .
6464
twine {posargs:check} {envtmpdir}/*
6565

6666
[testenv:static]
6767
deps =
6868
bandit ~= 1.7.0
69-
black ~= 22.3.0
70-
flake8 ~= 4.0.0
71-
mypy >= 0.900, < 0.910
69+
black ~= 24.2.0
70+
flake8 ~= 7.0.0
71+
mypy ~= 1.8.0
7272
commands =
7373
black --check src tests
7474
flake8 src tests

0 commit comments

Comments
 (0)