From a17a7e4833eeac533d8be3aac1a16f5e5c89d83d Mon Sep 17 00:00:00 2001 From: alexAubin <4533074+alexAubin@users.noreply.github.com> Date: Tue, 23 Jul 2024 17:46:06 +0000 Subject: [PATCH] :art: Format Python code with Black --- package_linter.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/package_linter.py b/package_linter.py index 5fadf16..a233aca 100755 --- a/package_linter.py +++ b/package_linter.py @@ -2101,12 +2101,16 @@ class Manifest(TestSuite): @test() def custom_install_dir(self): - custom_install_dir = self.manifest.get("resources", {}).get("install_dir", {}).get("dir") + custom_install_dir = ( + self.manifest.get("resources", {}).get("install_dir", {}).get("dir") + ) if not custom_install_dir: return if custom_install_dir.startswith("/opt/yunohost"): - yield Warning("Installing apps in /opt/yunohost is deprecated ... YunoHost is about standardization, and the standard is to install in /var/www/__APP__ (yes, even if not a webapp, because whatever). Please stick to the default value. the resource system should automatically move the install dir if needed so you don't really need to think about backward compatibility.") + yield Warning( + "Installing apps in /opt/yunohost is deprecated ... YunoHost is about standardization, and the standard is to install in /var/www/__APP__ (yes, even if not a webapp, because whatever). Please stick to the default value. the resource system should automatically move the install dir if needed so you don't really need to think about backward compatibility." + ) @test() def install_args(self):