Skip to content

Commit 6b2dd46

Browse files
committed
Upgrade ruff=0.11.0
1 parent 41f6b85 commit 6b2dd46

File tree

4 files changed

+27
-26
lines changed

4 files changed

+27
-26
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ jobs:
7676
- name: "Check out repository code"
7777
uses: "actions/checkout@v4"
7878
- name: "Setup environment"
79-
run: "pip install ruff==0.8.6"
79+
run: "pip install ruff==0.11.0"
8080
- name: "Linting: ruff check"
8181
run: "ruff check ."
8282
- name: "Linting: ruff format"

poetry.lock

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

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ pre-commit = "^2.20.0"
5858
types-toml = "*"
5959
types-ujson = "*"
6060
types-pyyaml = "*"
61-
ruff = "0.8.6"
61+
ruff = "0.11.0"
6262
pytest-xdist = "^3.3.1"
6363
types-python-slugify = "^8.0.0.3"
6464
invoke = "^2.2.0"
@@ -213,6 +213,7 @@ ignore = [
213213
"SIM118", # Use `key in dict` instead of `key in dict.keys)
214214
"TC003", # Move standard library import `collections.abc.Iterable` into a type-checking block
215215
"UP031", # Use format specifiers instead of percent format
216+
"UP045", # Use `X | None` for type annotations
216217
]
217218

218219

tests/integration/test_infrahub_client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,9 +162,9 @@ async def test_create_generic_rel_with_hfid(
162162
self, client: InfrahubClient, base_dataset, cat_luna, person_sophia, schema_animal, schema_cat
163163
):
164164
# See https://github.com/opsmill/infrahub-sdk-python/issues/277
165-
assert (
166-
schema_animal.human_friendly_id != schema_cat.human_friendly_id
167-
), "Inherited node schema should have a different hfid than generic one for this test to be relevant"
165+
assert schema_animal.human_friendly_id != schema_cat.human_friendly_id, (
166+
"Inherited node schema should have a different hfid than generic one for this test to be relevant"
167+
)
168168
person_sophia.favorite_animal = {"hfid": cat_luna.hfid, "kind": TESTING_CAT}
169169
await person_sophia.save()
170170
person_sophia = await client.get(kind=TESTING_PERSON, id=person_sophia.id, prefetch_relationships=True)

0 commit comments

Comments
 (0)