Skip to content

Commit

Permalink
update pre-commit config
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-oleshkevich committed Apr 27, 2023
1 parent 8870f28 commit 8534b6a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
12 changes: 6 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand All @@ -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' ]
5 changes: 1 addition & 4 deletions tests/test_middleware.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import datetime

import pytest
from starlette.requests import HTTPConnection
from starlette.responses import JSONResponse, Response
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 8534b6a

Please sign in to comment.