diff --git a/{{cookiecutter.project_name}}/app/core/config.py b/{{cookiecutter.project_name}}/app/core/config.py index 6e11b7d..6471502 100644 --- a/{{cookiecutter.project_name}}/app/core/config.py +++ b/{{cookiecutter.project_name}}/app/core/config.py @@ -21,11 +21,11 @@ Note, complex types like lists are read as json-encoded strings. """ +import tomllib from functools import cached_property from pathlib import Path from typing import Literal -import tomllib from pydantic import AnyHttpUrl, EmailStr, PostgresDsn, computed_field from pydantic_settings import BaseSettings, SettingsConfigDict diff --git a/{{cookiecutter.project_name}}/pyproject.toml b/{{cookiecutter.project_name}}/pyproject.toml index f64dc87..e50b773 100644 --- a/{{cookiecutter.project_name}}/pyproject.toml +++ b/{{cookiecutter.project_name}}/pyproject.toml @@ -44,6 +44,7 @@ minversion = "6.0" testpaths = ["app/tests"] [tool.ruff] +target-version = "py312" # pycodestyle, pyflakes, isort, pylint, pyupgrade select = ["E", "W", "F", "I", "PL", "UP"] ignore = ["E501"]