Merge pull request #148 from YunoHost/actions/black

Format Python code with Black
This commit is contained in:
OniriCorpe 2024-05-19 19:29:58 +02:00 committed by GitHub
commit 365eb27e15
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -811,7 +811,9 @@ class App(TestSuite):
@test() @test()
def supervisor_usage(self): def supervisor_usage(self):
if os.system("grep -I -qr '^\s*supervisorctl' %s 2>/dev/null" % self.path) == 0: if os.system("grep -I -qr '^\s*supervisorctl' %s 2>/dev/null" % self.path) == 0:
yield Warning("Please don't rely on supervisor to run services. YunoHost is about standardization and the standard is to use systemd units...") yield Warning(
"Please don't rely on supervisor to run services. YunoHost is about standardization and the standard is to use systemd units..."
)
@test() @test()
def bad_encoding(self): def bad_encoding(self):