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 .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ repos:

- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.15.0
rev: v0.15.12
hooks:
# Run the linter.
- id: ruff
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ tests = [
lint = [
"yamllint",
"mypy==1.11.2",
"ruff==0.15.0",
"ruff==0.15.12",
"astroid>=3.1,<4.0",
"ty==0.0.14",
]
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/ctl/test_parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def test_negative_integer(self) -> None:

def test_float(self) -> None:
result = parse_set_args(["ratio=2.5"])
assert result["ratio"] == 2.5
assert result["ratio"] == pytest.approx(2.5)
assert isinstance(result["ratio"], float)

def test_bool_true(self) -> None:
Expand Down
4 changes: 2 additions & 2 deletions tests/unit/sdk/pool/test_pool_queries.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ async def test_get_pool_resources_utilization(

utilizations = await ip_pool.get_pool_resources_utilization()
assert len(utilizations) == 1
assert utilizations[0]["utilization"] == 93.75
assert utilizations[0]["utilization"] == pytest.approx(93.75)
else:
ip_prefix = InfrahubNodeSync(client=clients.sync, schema=ipam_ipprefix_schema, data=ipam_ipprefix_data)
ip_pool = InfrahubNodeSync(
Expand All @@ -182,4 +182,4 @@ async def test_get_pool_resources_utilization(

utilizations = ip_pool.get_pool_resources_utilization()
assert len(utilizations) == 1
assert utilizations[0]["utilization"] == 93.75
assert utilizations[0]["utilization"] == pytest.approx(93.75)
46 changes: 23 additions & 23 deletions uv.lock

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