]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdb: add .flake8 file
authorSimon Marchi <simon.marchi@polymtl.ca>
Mon, 28 Jun 2021 19:27:21 +0000 (15:27 -0400)
committerSimon Marchi <simon.marchi@polymtl.ca>
Mon, 28 Jun 2021 19:27:21 +0000 (15:27 -0400)
Add a .flake8 file, which is used to set default options to the flake8
Python linter.  Use it to disable these two kinds of diagnostics, which
we don't care about since formatting is handled by black.  This reduces
the amount of noise when running flake8 on Python files.

    ./python/lib/gdb/function/caller_is.py:30:80: E501 line too long (81 > 79 characters)
    ./python/lib/gdb/command/frame_filters.py:468:17: W503 line break before binary operator

gdb/ChangeLog:

* .flake8: New.

Change-Id: I2b41379fdd1f6e8bf2a784d55a10b406e4d1c828

gdb/.flake8 [new file with mode: 0644]
gdb/ChangeLog

diff --git a/gdb/.flake8 b/gdb/.flake8
new file mode 100644 (file)
index 0000000..a6f727b
--- /dev/null
@@ -0,0 +1,2 @@
+[flake8]
+ignore = E501, W503
index 51132e4a44db82a916fbfc80f0c5fff766370032..e467b13e3aa472a7bc5e3827a76c449fb9de6b36 100644 (file)
@@ -1,3 +1,7 @@
+2021-06-28  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * .flake8: New.
+
 2021-06-28  Luis Machado  <luis.machado@linaro.org>
 
        * aarch64-linux-tdep.c (aarch64_linux_memtag_matches_p): Remove the top