From 704cb66fbb809dd41128eb21522135c1bd301000 Mon Sep 17 00:00:00 2001 From: Ross Titmarsh Date: Wed, 8 Nov 2023 15:44:17 +0000 Subject: [PATCH] Fixed Ruff defaulting to python3.8 --- {{cookiecutter.project_name}}/app/core/config.py | 2 +- {{cookiecutter.project_name}}/pyproject.toml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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"]