Skip to content

Commit

Permalink
Merge pull request #2931 from faucetsdn/dependabot/pip/lib/poseidon_a…
Browse files Browse the repository at this point in the history
…pi/black-24.3.0

Bump black from 23.3.0 to 24.3.0 in /lib/poseidon_api
  • Loading branch information
cglewis authored Jun 4, 2024
2 parents 7c101a2 + 4510a3a commit 48ca44f
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 37 deletions.
57 changes: 27 additions & 30 deletions lib/poseidon_api/poetry.lock

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

12 changes: 6 additions & 6 deletions lib/poseidon_api/poseidon_api/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,9 @@ def scrape_prometheus(self):
if "result" in results["data"] and results["data"]["result"]:
for metric in results["data"]["result"]:
if metric["metric"]["hash_id"] in role_hashes:
role_hashes[metric["metric"]["hash_id"]][
"second_role"
] = metric["metric"].get("role", NO_DATA)
role_hashes[metric["metric"]["hash_id"]]["second_role"] = (
metric["metric"].get("role", NO_DATA)
)
role_hashes[metric["metric"]["hash_id"]][
"second_confidence"
] = float(metric["values"][-1][1])
Expand All @@ -145,9 +145,9 @@ def scrape_prometheus(self):
if "result" in results["data"] and results["data"]["result"]:
for metric in results["data"]["result"]:
if metric["metric"]["hash_id"] in role_hashes:
role_hashes[metric["metric"]["hash_id"]][
"third_role"
] = metric["metric"].get("role", NO_DATA)
role_hashes[metric["metric"]["hash_id"]]["third_role"] = (
metric["metric"].get("role", NO_DATA)
)
role_hashes[metric["metric"]["hash_id"]][
"third_confidence"
] = float(metric["values"][-1][1])
Expand Down
2 changes: 1 addition & 1 deletion lib/poseidon_api/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ urllib3 = "<2.0.8"
poseidon-core = { path="../poseidon_core", develop=true }

[tool.poetry.dev-dependencies]
black = "23.3.0"
black = "24.3.0"
docker = "6.1.3"
httmock = "1.4.0"
mock = "5.0.2"
Expand Down

0 comments on commit 48ca44f

Please sign in to comment.