mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
🎨 Format Python code with Black
This commit is contained in:
parent
2d26935079
commit
6851d740f7
1 changed files with 22 additions and 4 deletions
|
@ -24,11 +24,25 @@ tree = {
|
|||
},
|
||||
"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)
|
||||
|
|
Loading…
Add table
Reference in a new issue