From 6851d740f74bcd16f49db708a08765719058e3f4 Mon Sep 17 00:00:00 2001 From: alexAubin <4533074+alexAubin@users.noreply.github.com> Date: Mon, 24 Jun 2024 20:38:46 +0000 Subject: [PATCH] :art: Format Python code with Black --- doc/generate_helper_doc.py | 26 ++++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/doc/generate_helper_doc.py b/doc/generate_helper_doc.py index 926227f3c..d572b03da 100644 --- a/doc/generate_helper_doc.py +++ b/doc/generate_helper_doc.py @@ -21,14 +21,28 @@ tree = { "title": "Databases", "notes": "This is coupled to the 'database' resource in the manifest.toml - at least for mysql/postgresql. Mongodb/redis may have better integration in the future.", "subsections": ["mysql", "postgresql", "mongodb", "redis"], - }, + }, "conf": { "title": "Configurations / templating", - "subsections": ["templating", "nginx", "php", "systemd", "fail2ban", "logrotate"], + "subsections": [ + "templating", + "nginx", + "php", + "systemd", + "fail2ban", + "logrotate", + ], }, "misc": { "title": "Misc tools", - "subsections": ["utils", "setting", "string", "backup", "logging", "multimedia"], + "subsections": [ + "utils", + "setting", + "string", + "backup", + "logging", + "multimedia", + ], }, "meh": { "title": "Deprecated or handled by the core / app resources since v2", @@ -36,6 +50,7 @@ tree = { }, } + def get_current_commit(): p = subprocess.Popen( "git rev-parse --verify HEAD", @@ -147,7 +162,10 @@ class Parser: # (we ignore helpers containing [internal] ...) if ( "[packagingv1]" not in current_block["comments"] - and not any(line.startswith("[internal]") for line in current_block["comments"]) + and not any( + line.startswith("[internal]") + for line in current_block["comments"] + ) and not current_block["name"].startswith("_") ): self.blocks.append(current_block)