]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
pre-commit: run flake8 on all .py(.in)? files under gdb
authorSimon Marchi <simon.marchi@efficios.com>
Wed, 29 Oct 2025 17:49:27 +0000 (13:49 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Thu, 30 Oct 2025 16:25:54 +0000 (12:25 -0400)
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>
.pre-commit-config.yaml

index 155b26127770c613fc11cc37456846d24d13ce39..369301254e3bb0d322973652f5c1d20a66d8ec2b 100644 (file)
@@ -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