From cb69259e971e76ef496afc0030a3aedfddfd0e06 Mon Sep 17 00:00:00 2001 From: "Joel T. Collins" Date: Sat, 9 Nov 2024 15:30:07 +0000 Subject: [PATCH 1/2] ci: update config structure --- pyproject.toml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 97ab228..8ac4527 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -67,6 +67,10 @@ disable_error_code = [ [tool.ruff] fix = true preview = true +extend-exclude = ["tests", "*_schema.py"] +target-version = "py38" + +[tool.ruff.lint] ignore = [ "A003", # FIXME "ANN401", # Ignore Anys @@ -74,10 +78,6 @@ ignore = [ "UP007", # Not compatible with Python 3.8 "UP006", # Not compatible with Python 3.8 ] -extend-exclude = ["tests", "*_schema.py"] -target-version = "py38" - -[tool.ruff.lint] extend-select = [ # "D", # pydocstyle # "FBT", # flake8-boolean-trap From 15be05281c955480699274738fcea56fc4205051 Mon Sep 17 00:00:00 2001 From: "Joel T. Collins" Date: Sat, 9 Nov 2024 15:30:31 +0000 Subject: [PATCH 2/2] ci: ignore str subclass warning --- fastapi_hypermodel/base/url_type.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fastapi_hypermodel/base/url_type.py b/fastapi_hypermodel/base/url_type.py index 3aa7309..99f021e 100644 --- a/fastapi_hypermodel/base/url_type.py +++ b/fastapi_hypermodel/base/url_type.py @@ -16,7 +16,7 @@ } -class UrlType(str): +class UrlType(str): # noqa: FURB189, RUF100 @classmethod def __get_pydantic_core_schema__( cls: Type[Self], *_: Any