Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,33 +32,33 @@ 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:
- flake8-force
- 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:
Expand All @@ -69,14 +69,14 @@ 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]
args:
- '--py38-plus'
- '--keep-runtime-typing'
- repo: 'https://github.com/abravalheri/validate-pyproject'
rev: v0.22
rev: v0.24.1
hooks:
- id: validate-pyproject
2 changes: 1 addition & 1 deletion src/mbedtls/tls.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/test_ringbuf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Loading