[1/9] Remove .flake8

Message ID 20240319-more-flake8-v1-1-893549dbed75@adacore.com
State New
Headers
Series Make gdb/python flake-clean |

Checks

Context Check Description
linaro-tcwg-bot/tcwg_gdb_build--master-aarch64 success Testing passed
linaro-tcwg-bot/tcwg_gdb_build--master-arm success Testing passed
linaro-tcwg-bot/tcwg_gdb_check--master-aarch64 success Testing passed
linaro-tcwg-bot/tcwg_gdb_check--master-arm success Testing passed

Commit Message

Tom Tromey March 19, 2024, 5:33 p.m. UTC
  I re-ran flake8 today and was puzzled to see W503 warnings.
Eventually I found out that the setup.cfg config overrides .flake8.
This patch merges the two and removes .flake8, to avoid future
confusion.
---
 gdb/.flake8   | 2 --
 gdb/setup.cfg | 3 ++-
 2 files changed, 2 insertions(+), 3 deletions(-)
  

Patch

diff --git a/gdb/.flake8 b/gdb/.flake8
deleted file mode 100644
index a6f727b8d5f..00000000000
--- a/gdb/.flake8
+++ /dev/null
@@ -1,2 +0,0 @@ 
-[flake8]
-ignore = E501, W503
diff --git a/gdb/setup.cfg b/gdb/setup.cfg
index 13aefa0342d..2e83eb5cf56 100644
--- a/gdb/setup.cfg
+++ b/gdb/setup.cfg
@@ -5,4 +5,5 @@ 
 # E203: Whitespace before ':'
 # E501: line too long
 # E701: Multiple statements on one line (colon)
-ignore = E203,E501,E701
+# W503: line break before binary operator
+ignore = E203,E501,E701,W503