From 2fd99af251f1547a6be61420d4d592c175ec414c Mon Sep 17 00:00:00 2001 From: Hang Lei Date: Mon, 6 Feb 2023 16:04:54 +0800 Subject: [PATCH] Fix flake8 --- azdev/config/cli.flake8 | 20 +++++++++++++------- azdev/config/ext.flake8 | 18 ++++++++++++------ 2 files changed, 25 insertions(+), 13 deletions(-) diff --git a/azdev/config/cli.flake8 b/azdev/config/cli.flake8 index c407d8e79..787ed6649 100644 --- a/azdev/config/cli.flake8 +++ b/azdev/config/cli.flake8 @@ -2,12 +2,18 @@ max-line-length = 120 max-complexity = 10 ignore = - E501, # line too long, it is covered by pylint - E722, # bare except, bad practice, to be removed in the future - F401, # imported but unused, too many violations, to be removed in the future - F811, # redefinition of unused, to be removed in the future - C901 # code flow is too complex, too many violations, to be removed in the future - W504 # line break after binary operator effect on readability is subjective + # line too long, it is covered by pylint + E501, + # bare except, bad practice, to be removed in the future + E722, + # imported but unused, too many violations, to be removed in the future + F401, + # redefinition of unused, to be removed in the future + F811, + # code flow is too complex, too many violations, to be removed in the future + C901, + # line break after binary operator effect on readability is subjective + W504 exclude = azure_cli_bdist_wheel.py build @@ -15,4 +21,4 @@ exclude = scripts doc build_scripts - */grammar/ \ No newline at end of file + */grammar/ diff --git a/azdev/config/ext.flake8 b/azdev/config/ext.flake8 index 39512a265..6b485739f 100644 --- a/azdev/config/ext.flake8 +++ b/azdev/config/ext.flake8 @@ -2,12 +2,18 @@ max-line-length = 120 max-complexity = 10 ignore = - E501, # line too long, it is covered by pylint - E722, # bare except, bad practice, to be removed in the future - F401, # imported but unused, too many violations, to be removed in the future - F811, # redefinition of unused, to be removed in the future - C901 # code flow is too complex, too many violations, to be removed in the future - W504 # line break after binary operator effect on readability is subjective + # line too long, it is covered by pylint + E501, + # bare except, bad practice, to be removed in the future + E722, + # imported but unused, too many violations, to be removed in the future + F401, + # redefinition of unused, to be removed in the future + F811, + # code flow is too complex, too many violations, to be removed in the future + C901, + # line break after binary operator effect on readability is subjective + W504 exclude = */vendored_sdks docs