diff --git a/cdv/examples/tests/test_piggybank.py b/cdv/examples/tests/test_piggybank.py index da53d73..f47f75a 100644 --- a/cdv/examples/tests/test_piggybank.py +++ b/cdv/examples/tests/test_piggybank.py @@ -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"], ) @@ -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"], ) diff --git a/ruff.toml b/ruff.toml index 35cabb8..19f3a1e 100644 --- a/ruff.toml +++ b/ruff.toml @@ -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. diff --git a/setup.py b/setup.py index 55e8c9a..008ad93 100644 --- a/setup.py +++ b/setup.py @@ -19,7 +19,7 @@ dev_dependencies = [ "anyio", "mypy", - "ruff==0.14.6", + "ruff==0.15.2", "types-aiofiles", "types-click", "types-cryptography",