pre-commit: Bump dependencies

Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Change-Id: I97bbc9fc51918630edf678fbe41252d89e12760a
This commit is contained in:
Stephen Finucane
2025-09-11 15:55:01 +01:00
parent 21a654b406
commit 084359a7cc
2 changed files with 6 additions and 12 deletions

View File

@@ -1,20 +1,14 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
rev: v6.0.0
hooks:
- id: trailing-whitespace
# Replaces or checks mixed line ending
- id: mixed-line-ending
args: ['--fix', 'lf']
exclude: '.*\.(svg)$'
# Forbid files which have a UTF-8 byte-order marker
- id: check-byte-order-marker
# Checks that non-binary executables have a proper shebang
- id: fix-byte-order-marker
- id: check-executables-have-shebangs
# Check for files that contain merge conflict strings.
- id: check-merge-conflict
# Check for debugger imports and py37+ breakpoint()
# calls in python source
- id: debug-statements
- id: check-yaml
files: .*\.(yaml|yml)$
@@ -25,13 +19,13 @@ repos:
additional_dependencies: []
exclude: '^(doc|releasenotes|tools)/.*$'
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.9.7
rev: v0.13.0
hooks:
- id: ruff
args: ['--fix', '--unsafe-fixes']
- id: ruff-format
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.7.1
rev: v1.17.1
hooks:
- id: mypy
additional_dependencies: [

View File

@@ -84,7 +84,7 @@ class TestBase(BaseTestCase):
class NoRequestBase(Middleware):
"""Test middleware, implements old model."""
def process_response(self, response):
def process_response(self, response, request): # type: ignore
self.called_without_request = True
return response
@@ -92,7 +92,7 @@ class NoRequestBase(Middleware):
class RequestBase(Middleware):
"""Test middleware, implements new model."""
def process_response(self, response, request):
def process_response(self, response, request): # type: ignore
self.called_with_request = True
return response