https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126226
Bug ID: 126226
Summary: python coding style should be made easy
Product: gcc
Version: 17.0
Status: UNCONFIRMED
Keywords: documentation, internal-improvement
Severity: enhancement
Priority: P3
Component: other
Assignee: unassigned at gcc dot gnu.org
Reporter: pinskia at gcc dot gnu.org
Target Milestone: ---
Currently the documentation for the python coding style is:
https://gcc.gnu.org/codingconventions.html#python
```
Python Language Conventions
Python scripts should follow PEP 8 – Style Guide for Python Code which can be
verified by the flake8 tool. We recommend using the following flake8 plug-ins:
flake8-builtins
flake8-import-order
flake8-quotes
```
But it is not obvious how this works especially for folks who don't know python
directly.
https://gcc.gnu.org/pipermail/gcc-patches/2026-June/718840.html
mentions that gdb uses black and maybe we should use it too.
https://sourceware.org/gdb/wiki/Internals%20GDB-Python-Coding-Standards
Not only that this should be part of the forge testing too.