Skip to content

Commit

Permalink
Merge pull request #128 from twisted/dependabot/pip/mypy-1.13.0
Browse files Browse the repository at this point in the history
Bump mypy from 0.812 to 1.13.0
  • Loading branch information
glyph authored Dec 2, 2024
2 parents 9f22282 + 31ad894 commit cd19d9d
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 14 deletions.
2 changes: 1 addition & 1 deletion requirements_lint.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# This file is autogenerated by pip-compile with Python 3.10
# This file is autogenerated by pip-compile with Python 3.9
# by the following command:
#
# pip-compile --output-file=requirements_lint.txt requirements_lint.in
Expand Down
2 changes: 1 addition & 1 deletion requirements_mypy.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
mypy==0.812
mypy==1.13.0
twisted
hatchling # for types
12 changes: 6 additions & 6 deletions requirements_mypy.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# This file is autogenerated by pip-compile with Python 3.10
# This file is autogenerated by pip-compile with Python 3.9
# by the following command:
#
# pip-compile --output-file=requirements_mypy.txt requirements_mypy.in
Expand All @@ -20,9 +20,9 @@ idna==3.7
# via hyperlink
incremental==22.10.0
# via twisted
mypy==0.812
mypy==1.13.0
# via -r requirements_mypy.in
mypy-extensions==0.4.4
mypy-extensions==1.0.0
# via mypy
packaging==24.1
# via hatchling
Expand All @@ -33,13 +33,13 @@ pluggy==1.5.0
six==1.16.0
# via automat
tomli==2.0.1
# via hatchling
# via
# hatchling
# mypy
trove-classifiers==2024.7.2
# via hatchling
twisted==24.3.0
# via -r requirements_mypy.in
typed-ast==1.4.3
# via mypy
typing-extensions==4.12.2
# via
# mypy
Expand Down
6 changes: 4 additions & 2 deletions requirements_tests.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# This file is autogenerated by pip-compile with Python 3.10
# This file is autogenerated by pip-compile with Python 3.9
# by the following command:
#
# pip-compile --output-file=requirements_tests.txt requirements_tests.in
Expand Down Expand Up @@ -62,7 +62,9 @@ idna==3.7
# httpx
# hyperlink
importlib-metadata==8.0.0
# via keyring
# via
# build
# keyring
incremental==22.10.0
# via twisted
jaraco-classes==3.4.0
Expand Down
4 changes: 1 addition & 3 deletions src/incremental/tests/test_pyproject.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,7 @@ def _loadToml(
return _load_pyproject_toml(path_)
except Exception as e:
if hasattr(e, "add_note"):
e.add_note( # type: ignore[attr-defined]
f"While loading:\n\n{toml}"
) # pragma: no coverage
e.add_note(f"While loading:\n\n{toml}") # pragma: no coverage
raise

def test_fileNotFound(self):
Expand Down
2 changes: 1 addition & 1 deletion src/incremental/update.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def _run(
from pkg_resources import parse_version

existing = _existing_version(versionpath)
st_version = parse_version(newversion)._version # type: ignore[attr-defined]
st_version = parse_version(newversion)._version

release = list(st_version.release)

Expand Down
5 changes: 5 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ envlist =
[testenv]
wheel = true
wheel_build_env = build
basepython =
lint: python3.9
mypy: python3.9
apidocs: python3.9
pindeps: python3.9
skip_install =
lint: true
mypy: true
Expand Down

0 comments on commit cd19d9d

Please sign in to comment.