From fd2cc21829673d776efed3c9d522bed536a78925 Mon Sep 17 00:00:00 2001 From: Rogdham Date: Sat, 20 Sep 2025 11:57:42 +0200 Subject: [PATCH] chore: update dev dependencies --- CHANGELOG.md | 1 + dev-requirements.txt | 6 +++--- mypy.ini | 3 +-- setup.cfg | 2 +- src/xz/open.py | 7 ++++--- tox.ini | 14 ++++++-------- 6 files changed, 16 insertions(+), 17 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 23c74e7..f4497ed 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,7 @@ adheres to [Semantic Versioning](https://semver.org/). - Fix test xz files generation for xz-utils 5.5.1+ - Freeze dev dependencies versions +- Update dev dependencies - Update GitHub actions dependencies - Add tests for PyPy 3.10 and 3.11 - Improve tox & CI pipelines diff --git a/dev-requirements.txt b/dev-requirements.txt index 24227bb..1adc015 100644 --- a/dev-requirements.txt +++ b/dev-requirements.txt @@ -8,8 +8,8 @@ build==1.3.0 ruff==0.13.1 # typing -mypy==1.0.1 +mypy==1.18.2 # tests -pytest==7.2.1 -pytest-cov==4.0.0 +pytest==8.4.2 +pytest-cov==7.0.0 diff --git a/mypy.ini b/mypy.ini index 92857d4..cd48e59 100644 --- a/mypy.ini +++ b/mypy.ini @@ -34,8 +34,7 @@ warn_no_return = True warn_return_any = True warn_unreachable = True -# Supressing errors -show_none_errors = True +# Suppressing errors ignore_errors = False # Miscellaneous strictness flags diff --git a/setup.cfg b/setup.cfg index e21f8e5..f04061b 100644 --- a/setup.cfg +++ b/setup.cfg @@ -32,4 +32,4 @@ package_dir = =src packages = xz python_requires = >=3.9 setup_requires = - setuptools_scm==7.1.0 + setuptools_scm==9.2.0 diff --git a/src/xz/open.py b/src/xz/open.py index 3c5d854..6f52040 100644 --- a/src/xz/open.py +++ b/src/xz/open.py @@ -1,4 +1,3 @@ -from functools import wraps from io import TextIOWrapper from typing import BinaryIO, Optional, Union, cast, overload @@ -54,16 +53,18 @@ def __init__( def mode(self) -> str: return f"{self.xz_file.mode}t" - @wraps(XZFile.change_stream) def change_stream(self) -> None: self.flush() self.xz_file.change_stream() - @wraps(XZFile.change_block) + change_stream.__doc__ = XZFile.change_stream.__doc__ + def change_block(self) -> None: self.flush() self.xz_file.change_block() + change_block.__doc__ = XZFile.change_block.__doc__ + @overload def xz_open( diff --git a/tox.ini b/tox.ini index e71c71d..1aabe0e 100644 --- a/tox.ini +++ b/tox.ini @@ -9,8 +9,8 @@ envlist = package = wheel wheel_build_env = .pkg # reuse same wheel across envs deps = - pytest==7.2.1 - pytest-cov==4.0.0 + pytest==8.4.2 + pytest-cov==7.0.0 passenv = PY_COLORS setenv = COVERAGE_FILE = {toxworkdir}/{envname}/.coverage @@ -27,10 +27,9 @@ commands = python -m build [testenv:generate-integration-files] -basepython = python3.11 deps = - pytest==7.2.1 - pytest-cov==4.0.0 + pytest==8.4.2 + pytest-cov==7.0.0 passenv = PY_COLORS setenv = PYTEST_ADDOPTS = --no-cov @@ -45,10 +44,9 @@ commands = ruff format --check src tests [testenv:type] -basepython = python3.11 deps = - mypy==1.0.1 - pytest==7.2.1 # for typing + mypy==1.18.2 + pytest==8.4.2 # for typing commands = mypy mypy --namespace-packages --explicit-package-bases tests