Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade ruff to 0.8.0 #45

Merged
merged 1 commit into from
Nov 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion isic_metadata/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ class Field:
}
)

for field in FIELD_REGISTRY:
for field in FIELD_REGISTRY: # noqa: PLC0206
if field in [
"blurry",
"color_tint",
Expand Down
2 changes: 1 addition & 1 deletion isic_metadata/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from decimal import Decimal
from typing import Annotated, Any, Literal

from annotated_types import Ge # noqa: TCH002
from annotated_types import Ge
from pydantic import (
AfterValidator,
BaseModel,
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ ignore = [
"RET503", # implict return
"PLR2004", # magic value used in comparison

"TCH003", # type checking blocks
"TC003", # type checking blocks

]

Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ envlist =
skipsdist = true
skip_install = true
deps =
ruff
ruff==0.8.0
commands =
ruff check {posargs:.}
ruff format --check {posargs:.}
Expand Down
Loading