Skip to content
Open
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
18 changes: 12 additions & 6 deletions cdv/examples/tests/test_piggybank.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,12 @@ async def test_piggybank_contribution(self, setup):
# Make sure there is exactly one piggybank with the new amount
filtered_result: list[Coin] = list(
filter(
lambda addition: (addition.amount == 501)
and (
addition.puzzle_hash == create_piggybank_puzzle(1000000000000, bob.puzzle_hash).get_tree_hash()
lambda addition: (
(addition.amount == 501)
and (
addition.puzzle_hash
== create_piggybank_puzzle(1000000000000, bob.puzzle_hash).get_tree_hash()
)
),
result["additions"],
)
Expand All @@ -98,9 +101,12 @@ async def test_piggybank_completion(self, setup):
# Make sure there is exactly one piggybank with value 0
filtered_result: list[Coin] = list(
filter(
lambda addition: (addition.amount == 0)
and (
addition.puzzle_hash == create_piggybank_puzzle(1000000000000, bob.puzzle_hash).get_tree_hash()
lambda addition: (
(addition.amount == 0)
and (
addition.puzzle_hash
== create_piggybank_puzzle(1000000000000, bob.puzzle_hash).get_tree_hash()
)
),
result["additions"],
)
Expand Down
3 changes: 3 additions & 0 deletions ruff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ ignore = [
"RUF029",
]

[lint.per-file-ignores]
"cdv/__init__.py" = ["RUF067"]
"cdv/test/__init__.py" = ["RUF067"]

[lint.flake8-implicit-str-concat]
# Found 3279 errors.
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
dev_dependencies = [
"anyio",
"mypy",
"ruff==0.14.6",
"ruff==0.15.2",
"types-aiofiles",
"types-click",
"types-cryptography",
Expand Down
Loading