Skip to content

Commit 8a43f81

Browse files
committed
chore(deps): update pyrefly to 0.22.0
Upgrade pyrefly from version 0.21.0 to 0.22.0 in both pyproject.toml and poetry.lock. Update code comments and type ignore directives to match new pyrefly linting and type checking requirements.
1 parent f335787 commit 8a43f81

File tree

8 files changed

+18
-18
lines changed

8 files changed

+18
-18
lines changed

cardano_node_tests/tests/test_dbsync.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,6 @@ def test_blocks(self, cluster: clusterlib.ClusterLib): # noqa: C901
211211
f"Expected: {prev_rec.id} vs Returned: {rec.previous_id}"
212212
)
213213

214-
# pyrefly: ignore # unknown
215214
prev_rec = rec
216215

217216
if errors:

cardano_node_tests/tests/test_pool_saturation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ def _save_pool_records() -> None:
346346
prev_user_reward = pool_rec.user_rewards[-1].reward_total
347347
prev_owner_reward = pool_rec.owner_rewards[-1].reward_total
348348

349-
pool_rec.blocks_minted[this_epoch - 1] = (
349+
pool_rec.blocks_minted[this_epoch - 1] = ( # pyrefly: ignore
350350
ledger_state["blocksBefore"].get(pool_rec.id_dec) or 0
351351
)
352352

cardano_node_tests/utils/clusterlib_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1094,7 +1094,7 @@ def wait_for_epoch_interval(
10941094
to_sleep = start_abs - s_from_epoch_start
10951095
if to_sleep > 0:
10961096
# `to_sleep` is float, wait for at least 1 second
1097-
time.sleep(max(1, to_sleep))
1097+
time.sleep(max(1.0, to_sleep))
10981098

10991099
# We can finish if slot number of last minted block doesn't need
11001100
# to match the time interval

cardano_node_tests/utils/dbsync_check_tx.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ def _get_scripts_hashes(
4848
for r in records:
4949
if not r.script_file:
5050
continue
51-
shash = cluster_obj.g_transaction.get_policyid(script_file=r.script_file)
51+
shash = cluster_obj.g_transaction.get_policyid(
52+
script_file=r.script_file # pyrefly: ignore bad-argument-type
53+
)
5254
shash_rec = hashes_db.get(shash)
5355
if shash_rec is None:
5456
hashes_db[shash] = [r]

cardano_node_tests/utils/framework_log.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def framework_logger() -> logging.Logger:
2020
"""
2121

2222
class UTCFormatter(logging.Formatter):
23-
converter = time.gmtime
23+
converter = time.gmtime # type: ignore[assignment]
2424

2525
formatter = UTCFormatter("%(asctime)s %(levelname)s %(message)s")
2626
handler = logging.FileHandler(get_framework_log_path())

cardano_node_tests/utils/requirements.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,6 @@ def get_mapped_req(mapping: pl.Path, executed_req: dict) -> dict: # noqa: C901
162162
dependencies_failures = []
163163

164164
for p_req in dependencies:
165-
# pyrefly: ignore # no-matching-overload, bad-argument-type
166165
p_status = executed_group.get(p_req, {}).get("status")
167166

168167
if not url:

poetry.lock

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

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ types-PyYAML = "^6.0.12.20250516"
5353
types-requests = "^2.32.4.20250611"
5454
mypy = "^1.16.1"
5555
ipython = "^9.3.0"
56-
pyrefly = "^0.21.0"
56+
pyrefly = "^0.22.0"
5757

5858
[tool.poetry.group.docs]
5959
optional = true

0 commit comments

Comments
 (0)