diff options
author | sagudev <16504129+sagudev@users.noreply.github.com> | 2023-06-23 16:23:41 +0200 |
---|---|---|
committer | sagudev <16504129+sagudev@users.noreply.github.com> | 2023-06-23 16:24:35 +0200 |
commit | bf08032b0312af9eb58a1a8f643b2a1c71890331 (patch) | |
tree | 4adc00695a135fce0ba4c0fcd16cf6aac3bea4d2 /python/tidy/tidy.py | |
parent | befb472c9d43d77d69ff86b447e857c392fe85e0 (diff) | |
download | servo-bf08032b0312af9eb58a1a8f643b2a1c71890331.tar.gz servo-bf08032b0312af9eb58a1a8f643b2a1c71890331.zip |
Standalone Flake8 config
Diffstat (limited to 'python/tidy/tidy.py')
-rw-r--r-- | python/tidy/tidy.py | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/python/tidy/tidy.py b/python/tidy/tidy.py index 1e5de4080c0..e0d09f4a7ea 100644 --- a/python/tidy/tidy.py +++ b/python/tidy/tidy.py @@ -325,15 +325,9 @@ def check_flake8(file_name, contents): if not file_name.endswith(".py"): return - 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 - } - output = "" try: - args = ["flake8", "--ignore=" + ",".join(ignore), file_name] + args = ["flake8", file_name] subprocess.check_output(args, universal_newlines=True) except subprocess.CalledProcessError as e: output = e.output |