aboutsummaryrefslogtreecommitdiffstats
path: root/plugins_overview.py
diff options
context:
space:
mode:
authorArif Ali <arif.ali@canonical.com>2024-04-12 16:54:30 +0100
committerJake Hunsaker <jacob.r.hunsaker@gmail.com>2024-05-03 15:03:09 -0400
commit5eef0576d6ec2fba042ee1178c2542dcf6a96ca4 (patch)
tree7bb388c7af371e6cada2953017e0e2d9e90e18b0 /plugins_overview.py
parent799425b80267fe215f9b9191348c8032deec013c (diff)
downloadsos-5eef0576d6ec2fba042ee1178c2542dcf6a96ca4.tar.gz
[pylint] pylint and flake8 updates
pylint for the following rules applied * C0411: wrong-import-order * R0912: too-many-branches * R0914: too-many-locals * R1725: super-with-arguments * E1101: no-member Resolves: #3597 Signed-off-by: Arif Ali <arif.ali@canonical.com>
Diffstat (limited to 'plugins_overview.py')
-rw-r--r--plugins_overview.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins_overview.py b/plugins_overview.py
index 520cf300..96484cb4 100644
--- a/plugins_overview.py
+++ b/plugins_overview.py
@@ -46,7 +46,8 @@ def add_valid_item(dest, item):
# split by comma; add each valid item to the `dest` list
def add_all_items(method, dest, wrapopen=r'\(', wrapclose=r'\)'):
regexp = f"{method}{wrapopen}(.*?){wrapclose}"
- for match in re.findall(regexp, plugcontent, flags=re.MULTILINE | re.DOTALL):
+ for match in re.findall(regexp, plugcontent,
+ flags=re.MULTILINE | re.DOTALL):
# tuple of distros ended by either (class|from|import)
if isinstance(match, tuple):
for item in list(match):