]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb: disable formatting-related flake8 warnings
authorSimon Marchi <simon.marchi@polymtl.ca>
Fri, 23 Feb 2024 20:43:02 +0000 (15:43 -0500)
committerSimon Marchi <simon.marchi@polymtl.ca>
Fri, 23 Feb 2024 21:57:09 +0000 (16:57 -0500)
commitb958f6af322de9791d9b1a5207b8fee1817d5779
tree22642a0f7bb77083ed70a6cc6accc86f25c2b137
parentbf8ab2ae8d33e46bb6612408c75e75a6de137ccc
gdb: disable formatting-related flake8 warnings

Tom Tromey pointed out that flake8 gives some warnings related to
formatting, such as:

    python/lib/gdb/prompt.py:149:43: E203 whitespace before ':'

We don't care about those, since all our formatting is handled
automatically by black, so ignore these warnings.

The list of warnings I put comes from:

  https://black.readthedocs.io/en/stable/guides/using_black_with_other_tools.html#flake8

Note that since the setup.cfg file is under the gdb directory, it will
be picked up if you run flake8 from the gdb directory like this:

    binutils-gdb/gdb $ flake8 python

but not if you do:

    binutils-gdb $ flake8 gdb/python

Change-Id: I1e42aefd388b9c3b6c9d52b4f635ac881db4bbc1
Approved-By: Tom Tromey <tom@tromey.com>
gdb/setup.cfg [new file with mode: 0644]