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 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
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