[binutils-gdb] pre-commit: run flake8 on all .py(.in)? files under gdb

Simon Marchi simark@sourceware.org
Thu Oct 30 16:27:47 GMT 2025


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=da8ad8e03abdba2b5e7794c95e6981d03fef6021

commit da8ad8e03abdba2b5e7794c95e6981d03fef6021
Author: Simon Marchi <simon.marchi@efficios.com>
Date:   Wed Oct 29 13:49:27 2025 -0400

    pre-commit: run flake8 on all .py(.in)? files under gdb
    
    This covers Python files under gdb/contrib and gdb/testsuite, which are
    now flake8-clean.
    
    Change-Id: If587964d0735f6f585c72d18df40439424215644
    Approved-By: Tom Tromey <tom@tromey.com>

Diff:
---
 .pre-commit-config.yaml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 155b2612777..369301254e3 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -59,7 +59,7 @@ repos:
       #  - gdb/python/**/*.py
       #  - gdb/testsuite/*.py
       #
-      files: '^gdb/(gdb-gdb\.py\.in|[^/]+\.py|python/.+\.py|testsuite/[^/]+\.py)$'
+      files: '^gdb/.*\.py(\.in)?$'
       args: [--config, gdb/setup.cfg]
   - repo: https://github.com/pycqa/isort
     rev: 7.0.0


More information about the Binutils-cvs mailing list