mirror of
https://github.com/YunoHost/package_linter.git
synced 2024-09-03 20:06:12 +02:00
🎨 Format Python code with Black
This commit is contained in:
parent
6221f62867
commit
dbf3aa94a1
1 changed files with 9 additions and 3 deletions
|
@ -2239,11 +2239,17 @@ class Manifest(TestSuite):
|
||||||
if "apt" in list(resources.keys()):
|
if "apt" in list(resources.keys()):
|
||||||
packages = str(list(resources["apt"].get("packages")))
|
packages = str(list(resources["apt"].get("packages")))
|
||||||
if "php7.4-" in packages:
|
if "php7.4-" in packages:
|
||||||
yield Warning("The app currently runs on php7.4 which is pretty old (unsupported by the PHP group since January 2023). Ideally, upgrade it to at least php8.2.")
|
yield Warning(
|
||||||
|
"The app currently runs on php7.4 which is pretty old (unsupported by the PHP group since January 2023). Ideally, upgrade it to at least php8.2."
|
||||||
|
)
|
||||||
elif "php8.0-" in packages:
|
elif "php8.0-" in packages:
|
||||||
yield Warning("The app currently runs on php8.0 which is pretty old (unsupported by the PHP group since January 2024). Ideally, upgrade it to at least php8.2.")
|
yield Warning(
|
||||||
|
"The app currently runs on php8.0 which is pretty old (unsupported by the PHP group since January 2024). Ideally, upgrade it to at least php8.2."
|
||||||
|
)
|
||||||
elif "php8.1-" in packages:
|
elif "php8.1-" in packages:
|
||||||
yield Info("The app currently runs on php8.1 which is deprecated since January 2024. Ideally, upgrade it to at least php8.2.")
|
yield Info(
|
||||||
|
"The app currently runs on php8.1 which is deprecated since January 2024. Ideally, upgrade it to at least php8.2."
|
||||||
|
)
|
||||||
|
|
||||||
@test()
|
@test()
|
||||||
def resource_consistency(self):
|
def resource_consistency(self):
|
||||||
|
|
Loading…
Reference in a new issue