Skip to content
Merged
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
2 changes: 1 addition & 1 deletion .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
- lint
strategy:
matrix:
python: [ "3.12", "3.13" ]
python: [ "3.11", "3.12", "3.13" ]
fail-fast: false

name: "Test on Python ${{ matrix.python }}"
Expand Down
2 changes: 1 addition & 1 deletion fastapi_cache/coder.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
}


def dec_hook[T](type_: type[T], obj: Any) -> T:
def dec_hook(type_: type[T], obj: Any) -> T:
if is_subclass_safe(type_, BaseModel):
if isinstance(obj, bytes):
return type_.model_validate_json(obj) # type: ignore[no-any-return, attr-defined]
Expand Down
8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ authors = [
{ name = "long2ice", email = "long2ice@gmail.com" },
{ name = "Yolley", email = "comingreal@gmail.com" },
]
requires-python = "~=3.12"
requires-python = ">=3.11"
readme = "README.md"
license = "Apache-2.0"
keywords = [
Expand Down Expand Up @@ -87,7 +87,7 @@ build-backend = "hatchling.build"

[tool.mypy]
files = ["."]
python_version = "3.12"
python_version = "3.11"
# equivalent of --strict
warn_unused_configs = true
disallow_any_generics = true
Expand All @@ -110,14 +110,14 @@ ignore_errors = true

[tool.pyright]
strict = ["fastapi_cache", "tests"]
pythonVersion = "3.12"
pythonVersion = "3.11"

[tool.pytest.ini_options]
addopts = "-p no:warnings"

[tool.ruff]
line-length = 120
target-version = "py312"
target-version = "py311"

[tool.ruff.lint]
select = [
Expand Down
3 changes: 2 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
[tox]
env_list =
py312,py313
py311,py312,py313
minversion = 4.11.3

[gh-actions]
# Map Github Actions Python version to environment factors
# Requires tox-gh-actions 3.x is installed in the GitHub action
python =
3.11: py311
3.12: py312
3.13: py313

Expand Down