From 23fdf2db9376f5abad1ea3e0a96a16e57b6ddd4d Mon Sep 17 00:00:00 2001 From: Vaclav Petras Date: Wed, 24 May 2023 14:22:19 -0400 Subject: [PATCH] contributing: Fix syntax in Flake8 config (#2976) Flake8 config file does not allow inline comments. Previous versions did not enforce that (which lead to silent errors), but the new versions (v6) do. Source: https://github.com/PyCQA/flake8/issues/1760 --- .flake8 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.flake8 b/.flake8 index 0e1754a62ca..7d2662b5bfa 100644 --- a/.flake8 +++ b/.flake8 @@ -1,7 +1,9 @@ [flake8] ignore = - E203, # whitespace before ':' (Black) - W503, # line break before binary operator (Black) + # whitespace before ':' (Black) + E203, + # line break before binary operator (Black) + W503, per-file-ignores = # Files and directories which need fixes or specific exceptions