[PATCH] gdb: disable formatting-related flake8 warnings

Simon Marchi simon.marchi@polymtl.ca
Fri Feb 23 22:00:20 GMT 2024



On 2024-02-23 16:07, Tom Tromey wrote:
>>>>>> "Simon" == Simon Marchi <simon.marchi@polymtl.ca> writes:
> 
> Simon> +# E203: Whitespace before ':' (conclicts with black's way of formatting)
> 
> "conflicts"

Ah, oops, this typo actually comes from where I copied the line (another
project I work on):

https://github.com/efficios/babeltrace/blob/5ecc1dc9a8d3ba726539fdd67e1be6a99f7dacf2/setup.cfg#L5

I changed the comment so it makes more sense, remove an extra "E701" as
well:

[flake8]
# Disable some formatted-related warnings that conflict with black's way of
# formatting code.
#
# E203: Whitespace before ':'
# E501: line too long
# E701: Multiple statements on one line (colon)
ignore = E203,E501,E701

I pushed that version.

Thanks,

Simon


More information about the Gdb-patches mailing list