Skip to content

Commit

Permalink
Update Python package ruff to ^0.0.285 (#2928)
Browse files Browse the repository at this point in the history
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Tim Diekmann <[email protected]>
Co-authored-by: Bilal Mahmoud <[email protected]>
  • Loading branch information
3 people authored Aug 18, 2023
1 parent bffb448 commit 67482bf
Show file tree
Hide file tree
Showing 10 changed files with 91 additions and 104 deletions.
38 changes: 19 additions & 19 deletions apps/hash-ai-worker-py/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion apps/hash-ai-worker-py/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ setuptools = "^68.0.0"

[tool.poetry.group.lint-tools.dependencies]
black = "^23.7.0"
ruff = "^0.0.275"
ruff = "^0.0.285"
mypy = "^1.4"


Expand All @@ -42,6 +42,8 @@ ignore = [
"PLC0414", # Conflicts with `no_implicit_reexport = true`
]

target-version = "py311"

[tool.mypy]
plugins = "pydantic.mypy"

Expand Down
38 changes: 19 additions & 19 deletions libs/@local/hash-graph-client/python/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 4 additions & 23 deletions libs/@local/hash-graph-client/python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ datamodel-code-generator = "^0.21.3"

[tool.poetry.group.lint-tools.dependencies]
black = "^23.7.0"
ruff = "^0.0.275"
ruff = "^0.0.285"
mypy = "^1.4"


Expand All @@ -46,28 +46,9 @@ ignore = [
"PLC0414", # Conflicts with `no_implicit_reexport = true`
]

exclude = [
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".hg",
".mypy_cache",
".nox",
".pants.d",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"venv",
target-version = "py311"

extend-exclude = [
"graph_client/models.py"
]

Expand Down
38 changes: 19 additions & 19 deletions libs/@local/hash-graph-sdk/python/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion libs/@local/hash-graph-sdk/python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ devtools = "^0.11.0"

[tool.poetry.group.lint-tools.dependencies]
black = "^23.7.0"
ruff = "^0.0.275"
ruff = "^0.0.285"
mypy = "^1.4"

hash-graph-client = { path = "../../hash-graph-client/python", develop = true }
Expand All @@ -43,6 +43,8 @@ ignore = [
"PLC0414", # Conflicts with `no_implicit_reexport = true`
]

target-version = "py311"

[tool.mypy]
plugins = "pydantic.mypy"

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
Loading

0 comments on commit 67482bf

Please sign in to comment.