Skip to content

Commit

Permalink
Merge pull request #91 from jtc42/ruff-fixes
Browse files Browse the repository at this point in the history
ci: ignore str subclass warning
  • Loading branch information
jtc42 authored Nov 10, 2024
2 parents ca6a03c + 15be052 commit e03d764
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion fastapi_hypermodel/base/url_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
}


class UrlType(str):
class UrlType(str): # noqa: FURB189, RUF100
@classmethod
def __get_pydantic_core_schema__(
cls: Type[Self], *_: Any
Expand Down
8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -67,17 +67,17 @@ 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
"ISC001", # Disable for compatibility with ruff-format
"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
Expand Down

0 comments on commit e03d764

Please sign in to comment.