From 584c4f066a9e091efa98db774540af74edc18d43 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 3 Mar 2026 10:33:45 +0000 Subject: [PATCH 1/2] Bump ruff from 0.14.6 to 0.15.2 Bumps [ruff](https://github.com/astral-sh/ruff) from 0.14.6 to 0.15.2. - [Release notes](https://github.com/astral-sh/ruff/releases) - [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md) - [Commits](https://github.com/astral-sh/ruff/compare/0.14.6...0.15.2) --- updated-dependencies: - dependency-name: ruff dependency-version: 0.15.2 dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index ca17778..fa24cc3 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", From 26c1c0eae2cae6d382b5efc03817961d3397724e Mon Sep 17 00:00:00 2001 From: Earle Lowe Date: Wed, 4 Mar 2026 11:17:09 -0800 Subject: [PATCH 2/2] ruff fixes --- cdv/examples/tests/test_piggybank.py | 18 ++++++++++++------ ruff.toml | 3 +++ 2 files changed, 15 insertions(+), 6 deletions(-) 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.