From 120a22a58e4aca0f5fe8cb6c1a70147d49df0d7e Mon Sep 17 00:00:00 2001 From: Ed Chalstrey Date: Fri, 5 Jun 2026 11:38:48 +0100 Subject: [PATCH 1/3] Ruff should ignore E203 --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index f7a60e8e4..c318f952a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -76,7 +76,7 @@ select = [ "Q", # prefer double quotes "W291", # trailing-whitespace ] -ignore = [] +ignore = ["E203"] fixable = ["ALL"] unfixable = [] From c5dc7866143c5efd6222b976de99eb5f5f466273 Mon Sep 17 00:00:00 2001 From: Ed Chalstrey Date: Fri, 5 Jun 2026 11:41:39 +0100 Subject: [PATCH 2/3] Ignore E203 whitespace errors in flake8 configuration --- .flake8 | 1 + 1 file changed, 1 insertion(+) diff --git a/.flake8 b/.flake8 index 3f907841f..1378ecef4 100644 --- a/.flake8 +++ b/.flake8 @@ -1,6 +1,7 @@ [flake8] max-line-length = 99 indent-width = 4 +extend-ignore = E203 include = setup.py src/pygambit From ed4f3c98fd7dc1b174247d1dd5d4a9226676b8ed Mon Sep 17 00:00:00 2001 From: Ed Chalstrey Date: Fri, 5 Jun 2026 11:42:20 +0100 Subject: [PATCH 3/3] Test ability to commit whitespace formatting introduced on save --- build_support/catalog/test_update.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build_support/catalog/test_update.py b/build_support/catalog/test_update.py index 2e0e402ad..1ee941b6c 100644 --- a/build_support/catalog/test_update.py +++ b/build_support/catalog/test_update.py @@ -695,7 +695,7 @@ def test_second_level_dropdown_is_not_open(self, tmp_path, monkeypatch): assert " .. dropdown:: My Source\n \n" in rst # Confirm :open: does not immediately follow the second-level dropdown src_idx = rst.index(" .. dropdown:: My Source") - assert ":open:" not in rst[src_idx:src_idx + 40] + assert ":open:" not in rst[src_idx : src_idx + 40] def test_game_dropdown_is_open(self, tmp_path, monkeypatch): """Individual game dropdowns carry ``:open:`` so game content is visible on expand."""