From d14d31e79f5470a361445e4e7610bc95b19e0185 Mon Sep 17 00:00:00 2001 From: Andreas Poehlmann Date: Mon, 9 Nov 2026 23:54:49 +0100 Subject: [PATCH] Remove flake8-string-format to fix lint on Python 3.14 ubuntu-latest now resolves to ubuntu-26.04, whose system Python is 3.14. flake8-string-format 0.3.0 (last released in 2020) uses `ast.Str`, which was removed in Python 3.14, crashing the flake8 pre-commit hook. Its P1xx checks were already ignored, and pyflakes' F52x checks cover the str.format argument validation it provided, so drop the plugin. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .flake8 | 5 +---- .pre-commit-config.yaml | 1 - 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/.flake8 b/.flake8 index a52e6824..54c964c4 100644 --- a/.flake8 +++ b/.flake8 @@ -6,14 +6,11 @@ ignore= E266 # Line break occurred before a binary operator W503 - # unindexed parameters in the str.format, see: - # https://pypi.org/project/flake8-string-format/ - P1 # def statements on the same line with overload E704 max_line_length = 88 max-complexity = 15 -select = B,C,E,F,W,T4,B902,T,P +select = B,C,E,F,W,T4,B902,T show_source = true count = true exclude = diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index bdd58c35..97d8277b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -48,7 +48,6 @@ repos: - flake8-bugbear==24.1.17 - flake8-comprehensions==3.14.0 - flake8-debugger==4.1.2 - - flake8-string-format==0.3.0 - repo: https://github.com/pycqa/bandit rev: 1.8.3 hooks: