From d296f0c5bea13dc109842a3fabd60e91b881fe2b Mon Sep 17 00:00:00 2001 From: Samson <16504129+sagudev@users.noreply.github.com> Date: Thu, 21 Dec 2023 18:09:56 +0100 Subject: [PATCH] Fix flake8 config (#30907) * Fix flake8 config * Add excludes for flake8 --- .flake8 | 25 ++++++++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/.flake8 b/.flake8 index 5815831b1af..997034dbab9 100644 --- a/.flake8 +++ b/.flake8 @@ -1,5 +1,24 @@ [flake8] ignore = - W291, # trailing whitespace; the standard tidy process will enforce no trailing whitespace - W503, # linebreak before binary operator; replaced by W504 - linebreak after binary operator - E501, # 80 character line length; the standard tidy process will enforce line length \ No newline at end of file + # trailing whitespace; the standard tidy process will enforce no trailing whitespace + W291, + # linebreak before binary operator; replaced by W504 - linebreak after binary operator + W503, + # 80 character line length; the standard tidy process will enforce line length + E501 +exclude = + # temporary local files + target + __pycache__ + python/_venv* + # upstream + third_party + python/mach + components + tests + # We should fix those + etc/ci + ./python/wpt/run.py + ./python/tidy/tidy.py + ./etc/servo_automation_screenshot.py + ./etc/memory_reports_over_time.py