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

Update Python package ruff to ^0.0.285 #2928

Merged
merged 9 commits into from
Aug 18, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
1 change: 1 addition & 0 deletions apps/hash-ai-worker-py/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ ignore = [
"D401", # Relates to PEP-257 but also conflicts with Google Python Style Guide, generally gets in the way
"ANN101", # most type checkers infer the type of `self` automatically
"ANN102", # most type checkers infer the type of `cls` automatically
"FA102", # Will become the default in a later Python release
TimDiekmann marked this conversation as resolved.
Show resolved Hide resolved
"FIX002", # TODOs should be fixed, not removed
"TD002", # We don't add authors to TODO strings
"PLC0414", # Conflicts with `no_implicit_reexport = true`
Expand Down
1 change: 1 addition & 0 deletions libs/@local/hash-graph-client/python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ ignore = [
"D401", # Relates to PEP-257 but also conflicts with Google Python Style Guide, generally gets in the way
"ANN101", # most type checkers infer the type of `self` automatically
"ANN102", # most type checkers infer the type of `cls` automatically
"FA102", # Will become the default in a later Python release
"FIX002", # TODOs should be fixed, not removed
"TD002", # We don't add authors to TODO strings
"PLC0414", # Conflicts with `no_implicit_reexport = true`
Expand Down
1 change: 1 addition & 0 deletions libs/@local/hash-graph-sdk/python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ ignore = [
"D401", # Relates to PEP-257 but also conflicts with Google Python Style Guide, generally gets in the way
"ANN101", # most type checkers infer the type of `self` automatically
"ANN102", # most type checkers infer the type of `cls` automatically
"FA102", # Will become the default in a later Python release
"FIX002", # TODOs should be fixed, not removed
"TD002", # We don't add authors to TODO strings
"PLC0414", # Conflicts with `no_implicit_reexport = true`
Expand Down
2 changes: 1 addition & 1 deletion libs/@local/hash-graph-types/graph_types/_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ async def create_model(
*,
actor_id: UUID,
graph: "GraphAPIProtocol",
) -> type[BaseModel] | Annotated[Any, ...]:
) -> type[BaseModel] | Annotated[Any, ...]: # noqa: ANN401
...


Expand Down
2 changes: 1 addition & 1 deletion libs/@local/hash-graph-types/graph_types/property_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ async def create_model(
*,
actor_id: UUID,
graph: "GraphAPIProtocol",
) -> type[RootModel] | Annotated[Any, ...]:
) -> type[RootModel] | Annotated[Any, ...]: # noqa: ANN401
return await self.root.create_model(actor_id=actor_id, graph=graph)


Expand Down
1 change: 1 addition & 0 deletions libs/@local/hash-graph-types/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ ignore = [
"D401", # Relates to PEP-257 but also conflicts with Google Python Style Guide, generally gets in the way
"ANN101", # most type checkers infer the type of `self` automatically
"ANN102", # most type checkers infer the type of `cls` automatically
"FA102", # Will become the default in a later Python release
"FIX002", # TODOs should be fixed, not removed
"TD002", # We don't add authors to TODO strings
"PLC0414", # Conflicts with `no_implicit_reexport = true`
Expand Down