From 7912ba4d91319f99c6a7bb71f727777fd7f95afc Mon Sep 17 00:00:00 2001 From: Dominik Jain Date: Thu, 7 Aug 2025 13:31:34 +0200 Subject: [PATCH 1/2] Check formatting in CI --- .github/workflows/pytest.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index ddfe7a32..c5dd340f 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -102,6 +102,9 @@ jobs: - name: Install dependencies shell: bash run: uv pip install -e ".[dev]" + - name: Check formatting + shell: bash + run: uv run poe lint - name: Test with pytest shell: bash run: uv run poe test From dc5be9fad40c8c2ccc186f6ca57995ebe4fe1ccd Mon Sep 17 00:00:00 2001 From: Dominik Jain Date: Thu, 7 Aug 2025 13:41:45 +0200 Subject: [PATCH 2/2] Ignore ruff UP045 --- pyproject.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/pyproject.toml b/pyproject.toml index 8e4d563c..4363567b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -235,6 +235,7 @@ ignore = [ "SIM117", # forbids nested with statements "C400", # wants to unnecessarily force use of list comprehension "UP037", # can incorrectly (!) convert quoted type to unquoted type, causing an error + "UP045", # imposes T | None instead of Optional[T] ] unfixable = ["F841", "F601", "F602", "B018"] extend-fixable = ["F401", "B905", "W291"]