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
12 changes: 6 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ci:
autofix_commit_msg: "[pre-commit.ci] auto fixes from pre-commit.com hooks [dependabot skip]"
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
rev: v6.0.0
hooks:
- id: check-yaml
args: [--unsafe]
Expand All @@ -12,23 +12,23 @@ repos:
- id: end-of-file-fixer

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.9
rev: v0.12.12
hooks:
- id: ruff
name: "lint with ruff"
- id: ruff-format
name: "format with ruff"

- repo: https://github.com/jackdewinter/pymarkdown
rev: v0.9.20
rev: v0.9.32
hooks:
- id: pymarkdown
name: "check markdown"
exclude: ^.github/|CHANGELOG
args: [scan]

- repo: https://github.com/pre-commit/mirrors-mypy
rev: "v1.10.0" # Use the sha / tag you want to point at
rev: "v1.17.1" # Use the sha / tag you want to point at
hooks:
- id: mypy
name: "Check with Mypy"
Expand All @@ -39,14 +39,14 @@ repos:
- "types-tzlocal"

- repo: https://github.com/python-poetry/poetry
rev: "1.8.0"
rev: "2.1.3"
hooks:
- id: poetry-check
name: "check poetry files"
# - id: poetry-lock

- repo: https://github.com/python-poetry/poetry-plugin-export
rev: "1.8.0"
rev: "1.9.0"
hooks:
- id: poetry-export
name: "export production dependencies"
Expand Down
6 changes: 3 additions & 3 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ httptools==0.6.1 ; python_version >= "3.9" and python_version < "4.0"
httpx==0.27.0 ; python_version >= "3.9" and python_version < "4.0"
identify==2.5.36 ; python_version >= "3.9" and python_version < "4.0"
idna==3.7 ; python_version >= "3.9" and python_version < "4.0"
importlib-metadata==7.2.0 ; python_version >= "3.9" and python_version < "3.10"
importlib-metadata==7.2.0 ; python_version == "3.9"
iniconfig==2.0.0 ; python_version >= "3.9" and python_version < "4.0"
itsdangerous==2.2.0 ; python_version >= "3.9" and python_version < "4.0"
jinja2==3.1.4 ; python_version >= "3.9" and python_version < "4.0"
Expand Down Expand Up @@ -124,11 +124,11 @@ tzlocal==5.2 ; python_version >= "3.9" and python_version < "4.0"
ujson==5.10.0 ; python_version >= "3.9" and python_version < "4.0"
urllib3==2.2.2 ; python_version >= "3.9" and python_version < "4.0"
uvicorn[standard]==0.30.1 ; python_version >= "3.9" and python_version < "4.0"
uvloop==0.19.0 ; (sys_platform != "win32" and sys_platform != "cygwin") and platform_python_implementation != "PyPy" and python_version >= "3.9" and python_version < "4.0"
uvloop==0.19.0 ; sys_platform != "win32" and sys_platform != "cygwin" and platform_python_implementation != "PyPy" and python_version >= "3.9" and python_version < "4.0"
virtualenv==20.26.2 ; python_version >= "3.9" and python_version < "4.0"
watchdog==4.0.1 ; python_version >= "3.9" and python_version < "4.0"
watchfiles==0.22.0 ; python_version >= "3.9" and python_version < "4.0"
wcwidth==0.2.13 ; python_version >= "3.9" and python_version < "4.0"
websockets==12.0 ; python_version >= "3.9" and python_version < "4.0"
wrapt==1.16.0 ; python_version >= "3.9" and python_version < "4.0"
zipp==3.19.2 ; python_version >= "3.9" and python_version < "3.10"
zipp==3.19.2 ; python_version == "3.9"
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@ tzdata==2024.1 ; python_version >= "3.9" and python_version < "4.0" and platform
tzlocal==5.2 ; python_version >= "3.9" and python_version < "4.0"
ujson==5.10.0 ; python_version >= "3.9" and python_version < "4.0"
uvicorn[standard]==0.30.1 ; python_version >= "3.9" and python_version < "4.0"
uvloop==0.19.0 ; (sys_platform != "win32" and sys_platform != "cygwin") and platform_python_implementation != "PyPy" and python_version >= "3.9" and python_version < "4.0"
uvloop==0.19.0 ; sys_platform != "win32" and sys_platform != "cygwin" and platform_python_implementation != "PyPy" and python_version >= "3.9" and python_version < "4.0"
watchfiles==0.22.0 ; python_version >= "3.9" and python_version < "4.0"
websockets==12.0 ; python_version >= "3.9" and python_version < "4.0"
6 changes: 3 additions & 3 deletions tests/live_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ async def cache_expires() -> dict[str, Union[bool, str]]:

@app.get("/cache_json_encoder")
@cache(tag="test_tag_1")
def cache_json_encoder() -> (
dict[str, Union[bool, str, datetime, date, Decimal]]
):
def cache_json_encoder() -> dict[
str, Union[bool, str, datetime, date, Decimal]
]:
"""Route that returns a dictionary with different data types.

This has the default cache time of 1 year.
Expand Down
6 changes: 3 additions & 3 deletions tests/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ async def cache_expires() -> dict[str, Union[bool, str]]:

@app.get("/cache_json_encoder")
@cache()
def cache_json_encoder() -> (
dict[str, Union[bool, str, datetime, date, Decimal]]
):
def cache_json_encoder() -> dict[
str, Union[bool, str, datetime, date, Decimal]
]:
"""Route that returns a dictionary with different data types."""
return {
"success": True,
Expand Down
Loading