diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8c209cf4..5cc241b8 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.12.7 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.7 hooks: - id: cython-lint - repo: 'https://github.com/pycqa/flake8' - rev: 7.1.1 + rev: 7.3.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.7 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.20.0 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 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.