diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6ea6e34..e80f3b6 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -6,7 +6,7 @@ default_stages: [ commit ] repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.3.0 + rev: v4.4.0 hooks: - id: check-yaml - id: check-case-conflict @@ -19,23 +19,23 @@ repos: - id: check-yaml - repo: https://github.com/pycqa/isort - rev: 5.10.1 + rev: 5.12.0 hooks: - id: isort - repo: https://github.com/psf/black.git - rev: 22.10.0 + rev: 23.3.0 hooks: - id: black args: [ --config=pyproject.toml ] - repo: https://github.com/pycqa/flake8 - rev: 5.0.4 + rev: 6.0.0 hooks: - id: flake8 - repo: https://github.com/pre-commit/mirrors-mypy - rev: 'v0.990' + rev: 'v1.2.0' hooks: - id: mypy additional_dependencies: @@ -46,7 +46,7 @@ repos: - fastapi - repo: https://github.com/myint/docformatter.git - rev: v1.5.0 + rev: v1.6.4 hooks: - id: docformatter args: [ '--in-place', '--wrap-summaries=120', '--wrap-descriptions=120', '--pre-summary-newline' ] diff --git a/tests/test_middleware.py b/tests/test_middleware.py index 1f9afc4..abb9e2a 100644 --- a/tests/test_middleware.py +++ b/tests/test_middleware.py @@ -1,5 +1,4 @@ import datetime - import pytest from starlette.requests import HTTPConnection from starlette.responses import JSONResponse, Response @@ -239,9 +238,7 @@ async def app(scope: Scope, receive: Receive, send: Send) -> None: def test_session_timedelta_lifetime(store: SessionStore) -> None: - """ - It should accept datetime.timedelta as lifetime value. - """ + """It should accept datetime.timedelta as lifetime value.""" async def app(scope: Scope, receive: Receive, send: Send) -> None: pass