From 161f1e6cd167752a69431fee46b51a1fbeac9bd8 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 7 Apr 2025 19:18:03 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/charliermarsh/ruff-pre-commit: v0.7.2 → v0.11.4](https://github.com/charliermarsh/ruff-pre-commit/compare/v0.7.2...v0.11.4) - [github.com/psf/black: 24.10.0 → 25.1.0](https://github.com/psf/black/compare/24.10.0...25.1.0) - [github.com/MarcoGorelli/cython-lint: v0.16.2 → v0.16.6](https://github.com/MarcoGorelli/cython-lint/compare/v0.16.2...v0.16.6) - [github.com/pycqa/flake8: 7.1.1 → 7.2.0](https://github.com/pycqa/flake8/compare/7.1.1...7.2.0) - [github.com/PyCQA/isort: 5.13.2 → 6.0.1](https://github.com/PyCQA/isort/compare/5.13.2...6.0.1) - [github.com/PyCQA/pylint: v3.3.1 → v3.3.6](https://github.com/PyCQA/pylint/compare/v3.3.1...v3.3.6) - [github.com/asottile/pyupgrade: v3.19.0 → v3.19.1](https://github.com/asottile/pyupgrade/compare/v3.19.0...v3.19.1) - [github.com/abravalheri/validate-pyproject: v0.22 → v0.24.1](https://github.com/abravalheri/validate-pyproject/compare/v0.22...v0.24.1) --- .pre-commit-config.yaml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8c209cf4..02a14a1d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -32,20 +32,20 @@ repos: - id: end-of-file-fixer - id: trailing-whitespace - repo: 'https://github.com/charliermarsh/ruff-pre-commit' - rev: v0.7.2 + rev: v0.11.4 hooks: - id: ruff - repo: 'https://github.com/psf/black' - rev: 24.10.0 + rev: 25.1.0 hooks: - id: black types: [python] - repo: 'https://github.com/MarcoGorelli/cython-lint' - rev: v0.16.2 + rev: v0.16.6 hooks: - id: cython-lint - repo: 'https://github.com/pycqa/flake8' - rev: 7.1.1 + rev: 7.2.0 hooks: - id: flake8 additional_dependencies: @@ -53,12 +53,12 @@ repos: - flake8-pytest-style types_or: [cython, python] - repo: 'https://github.com/PyCQA/isort' - rev: 5.13.2 + rev: 6.0.1 hooks: - id: isort types_or: [cython, python] - repo: 'https://github.com/PyCQA/pylint' - rev: v3.3.1 + rev: v3.3.6 hooks: - id: pylint additional_dependencies: @@ -69,7 +69,7 @@ repos: - '--disable=no-name-in-module' - '--disable=import-error' - repo: 'https://github.com/asottile/pyupgrade' - rev: v3.19.0 + rev: v3.19.1 hooks: - id: pyupgrade types_or: [cython, python] @@ -77,6 +77,6 @@ repos: - '--py38-plus' - '--keep-runtime-typing' - repo: 'https://github.com/abravalheri/validate-pyproject' - rev: v0.22 + rev: v0.24.1 hooks: - id: validate-pyproject From fed3e8b8ab7a8957c7b607f84a6c9c246b2a9e2d Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 7 Apr 2025 19:18:31 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/mbedtls/tls.py | 2 +- tests/test_ringbuf.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mbedtls/tls.py b/src/mbedtls/tls.py index 62cf56e8..9082a861 100644 --- a/src/mbedtls/tls.py +++ b/src/mbedtls/tls.py @@ -90,7 +90,7 @@ def __init__( length: int, ) -> None: def parse_version( - v: Union[int, Tuple[int, int], TLSVersion] + v: Union[int, Tuple[int, int], TLSVersion], ) -> TLSVersion: if isinstance(v, TLSVersion): return v diff --git a/tests/test_ringbuf.py b/tests/test_ringbuf.py index 16feebc3..3ada3dc9 100644 --- a/tests/test_ringbuf.py +++ b/tests/test_ringbuf.py @@ -13,7 +13,7 @@ @pytest.fixture def randomize_start( - randbytes: Callable[[int], bytes] + randbytes: Callable[[int], bytes], ) -> Callable[[bytes], None]: def impl(buffer: RingBuffer) -> None: # Randomize start of the buffer.