diff --git a/cookiecutter.json b/cookiecutter.json index f158bb2..99025e5 100644 --- a/cookiecutter.json +++ b/cookiecutter.json @@ -47,7 +47,7 @@ "https" ], "__template_repo": "https://github.com/btr1975/cookiecutter-python-fastapi-openapi", - "__template_version": "2.0.9", + "__template_version": "2.0.10", "_new_lines": "\n", "_copy_without_render": [ "{{cookiecutter.__app_name}}/templates", diff --git a/pyproject.toml b/pyproject.toml index 9deb476..0e5554b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,7 +7,7 @@ build-backend = "setuptools.build_meta" [project] name = "cookiecutter-python-fastapi-openapi" -version = "2.0.9" +version = "2.0.10" dynamic = ["readme"] requires-python = ">=3.10" description = "A cookiecutter for a python FastAPI Application" diff --git a/uv.lock b/uv.lock index df4bc92..213ded0 100644 --- a/uv.lock +++ b/uv.lock @@ -279,7 +279,7 @@ wheels = [ [[package]] name = "cookiecutter-python-fastapi-openapi" -version = "2.0.9" +version = "2.0.10" source = { editable = "." } dependencies = [ { name = "cookiecutter" }, diff --git a/{{cookiecutter.git_repo_name}}/pyproject.toml b/{{cookiecutter.git_repo_name}}/pyproject.toml index fbd8ca0..2cd6b5b 100644 --- a/{{cookiecutter.git_repo_name}}/pyproject.toml +++ b/{{cookiecutter.git_repo_name}}/pyproject.toml @@ -137,10 +137,17 @@ fail-under = 9.9 [tool.black] line-length = 120 +{% if cookiecutter.minimum_python_version <= '3.11' %} target-version = [ "py311", "py312", ] +{% endif %} +{% if cookiecutter.minimum_python_version >= '3.12' %} +target-version = [ + "py312", +] +{% endif %} [tool.bandit] exclude_dirs = [ @@ -149,6 +156,9 @@ exclude_dirs = [ "docs", ] +[tool.mypy] +python_version = "{{ cookiecutter.minimum_python_version }}" + {% if cookiecutter.package_manager == 'uv' %} # UV settings reference https://docs.astral.sh/uv/reference/settings/