From 7a8a83d97947c02b6cfab176a7efeaf31cc592ae Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 25 Oct 2024 02:05:41 +0000 Subject: [PATCH 1/3] Bump mypy from 0.812 to 1.13.0 Bumps [mypy](https://github.com/python/mypy) from 0.812 to 1.13.0. - [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md) - [Commits](https://github.com/python/mypy/compare/v0.812...v1.13.0) --- updated-dependencies: - dependency-name: mypy dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- requirements_mypy.in | 2 +- requirements_mypy.txt | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/requirements_mypy.in b/requirements_mypy.in index 1c3f8f8..a3820f0 100644 --- a/requirements_mypy.in +++ b/requirements_mypy.in @@ -1,3 +1,3 @@ -mypy==0.812 +mypy==1.13.0 twisted hatchling # for types diff --git a/requirements_mypy.txt b/requirements_mypy.txt index 9228c07..4dfe295 100644 --- a/requirements_mypy.txt +++ b/requirements_mypy.txt @@ -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 @@ -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 From c620e75cd0f9ab8dc90d9a3cdf9bf875155d45b7 Mon Sep 17 00:00:00 2001 From: Tom Most Date: Sun, 1 Dec 2024 22:28:33 -0800 Subject: [PATCH 2/3] Lock a consistent Python version --- requirements_lint.txt | 2 +- requirements_mypy.txt | 2 +- requirements_tests.txt | 6 ++++-- tox.ini | 5 +++++ 4 files changed, 11 insertions(+), 4 deletions(-) diff --git a/requirements_lint.txt b/requirements_lint.txt index 6548bf4..cb992e7 100644 --- a/requirements_lint.txt +++ b/requirements_lint.txt @@ -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 diff --git a/requirements_mypy.txt b/requirements_mypy.txt index 4dfe295..48d416d 100644 --- a/requirements_mypy.txt +++ b/requirements_mypy.txt @@ -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 diff --git a/requirements_tests.txt b/requirements_tests.txt index 5c73842..6b72fbc 100644 --- a/requirements_tests.txt +++ b/requirements_tests.txt @@ -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 @@ -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 diff --git a/tox.ini b/tox.ini index a51ec04..073c510 100644 --- a/tox.ini +++ b/tox.ini @@ -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 From 31ad894ba036050732ce7c627bf5924fc5bdd0bc Mon Sep 17 00:00:00 2001 From: Tom Most Date: Sun, 1 Dec 2024 23:21:02 -0800 Subject: [PATCH 3/3] Address mypy issues --- src/incremental/tests/test_pyproject.py | 4 +--- src/incremental/update.py | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/incremental/tests/test_pyproject.py b/src/incremental/tests/test_pyproject.py index 1f18bb4..69b8e06 100644 --- a/src/incremental/tests/test_pyproject.py +++ b/src/incremental/tests/test_pyproject.py @@ -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): diff --git a/src/incremental/update.py b/src/incremental/update.py index 645d83e..eee86af 100644 --- a/src/incremental/update.py +++ b/src/incremental/update.py @@ -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)