Skip to content

Commit 627bae0

Browse files
committed
Upgrade ruff=0.14.10 and fix new violation
1 parent 25ead97 commit 627bae0

File tree

3 files changed

+26
-27
lines changed

3 files changed

+26
-27
lines changed

infrahub_sdk/schema/repository.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,7 @@ class InfrahubRepositoryGraphQLConfig(InfrahubRepositoryConfigElement):
151151

152152
def load_query(self, relative_path: str = ".") -> str:
153153
file_name = Path(f"{relative_path}/{self.file_path}")
154-
with file_name.open("r", encoding="UTF-8") as file:
155-
return file.read()
154+
return file_name.read_text(encoding="UTF-8")
156155

157156

158157
class InfrahubObjectConfig(InfrahubRepositoryConfigElement):

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ tests = [
8080
lint = [
8181
"yamllint",
8282
"mypy==1.11.2",
83-
"ruff==0.14.5",
83+
"ruff==0.14.10",
8484
"astroid>=3.1,<4.0",
8585
"ty==0.0.4",
8686
]

uv.lock

Lines changed: 24 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)