Skip to content
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
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ jobs:
- name: "Check out repository code"
uses: "actions/checkout@v4"
- name: "Setup environment"
run: "pip install ruff==0.8.6"
run: "pip install ruff==0.11.0"
- name: "Linting: ruff check"
run: "ruff check ."
- name: "Linting: ruff format"
Expand Down
42 changes: 21 additions & 21 deletions poetry.lock

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

3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ pre-commit = "^2.20.0"
types-toml = "*"
types-ujson = "*"
types-pyyaml = "*"
ruff = "0.8.6"
ruff = "0.11.0"
pytest-xdist = "^3.3.1"
types-python-slugify = "^8.0.0.3"
invoke = "^2.2.0"
Expand Down Expand Up @@ -213,6 +213,7 @@ ignore = [
"SIM118", # Use `key in dict` instead of `key in dict.keys)
"TC003", # Move standard library import `collections.abc.Iterable` into a type-checking block
"UP031", # Use format specifiers instead of percent format
"UP045", # Use `X | None` for type annotations
]


Expand Down
6 changes: 3 additions & 3 deletions tests/integration/test_infrahub_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,9 @@ async def test_create_generic_rel_with_hfid(
self, client: InfrahubClient, base_dataset, cat_luna, person_sophia, schema_animal, schema_cat
):
# See https://github.com/opsmill/infrahub-sdk-python/issues/277
assert (
schema_animal.human_friendly_id != schema_cat.human_friendly_id
), "Inherited node schema should have a different hfid than generic one for this test to be relevant"
assert schema_animal.human_friendly_id != schema_cat.human_friendly_id, (
"Inherited node schema should have a different hfid than generic one for this test to be relevant"
)
person_sophia.favorite_animal = {"hfid": cat_luna.hfid, "kind": TESTING_CAT}
await person_sophia.save()
person_sophia = await client.get(kind=TESTING_PERSON, id=person_sophia.id, prefetch_relationships=True)
Expand Down