1
0
Fork 0
mirror of https://github.com/YunoHost/apps.git synced 2024-09-03 20:06:07 +02:00

🎨 Format Python code with Black (#2275)

Co-authored-by: alexAubin <4533074+alexAubin@users.noreply.github.com>
This commit is contained in:
github-actions[bot] 2024-04-30 22:54:57 +02:00 committed by GitHub
parent 826639058e
commit 5f7bef0a5d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -144,9 +144,7 @@ class GeneralInfos(FlaskForm):
app_name = StringField( app_name = StringField(
_("App name"), _("App name"),
description=_( description=_("It's the application name, displayed in the user interface"),
"It's the application name, displayed in the user interface"
),
validators=[DataRequired()], validators=[DataRequired()],
render_kw={ render_kw={
"placeholder": "My super App", "placeholder": "My super App",
@ -180,16 +178,12 @@ class IntegrationInfos(FlaskForm):
maintainers = StringField( maintainers = StringField(
_("Maintainer of the generated app"), _("Maintainer of the generated app"),
description=_( description=_("Usually you put your name here... If you're okay with it ;)"),
"Usually you put your name here... If you're okay with it ;)"
),
) )
yunohost_required_version = StringField( yunohost_required_version = StringField(
_("Minimal YunoHost version"), _("Minimal YunoHost version"),
description=_( description=_("Minimal YunoHost version for the application to work"),
"Minimal YunoHost version for the application to work"
),
render_kw={ render_kw={
"placeholder": "11.1.21", "placeholder": "11.1.21",
}, },
@ -391,9 +385,7 @@ class Ressources(FlaskForm):
) )
apt_dependencies = StringField( apt_dependencies = StringField(
_( _("Dependencies to be installed via apt (separated by comma and/or spaces)"),
"Dependencies to be installed via apt (separated by comma and/or spaces)"
),
render_kw={ render_kw={
"placeholder": "foo, bar2.1-ext, libwat", "placeholder": "foo, bar2.1-ext, libwat",
}, },
@ -458,9 +450,7 @@ class SpecificTechnology(FlaskForm):
use_composer = BooleanField( use_composer = BooleanField(
_("Use composer"), _("Use composer"),
description=_( description=_("Composer is a PHP dependencies manager used by some apps"),
"Composer is a PHP dependencies manager used by some apps"
),
default=False, default=False,
) )
@ -498,9 +488,7 @@ class AppConfig(FlaskForm):
use_custom_config_file = BooleanField( use_custom_config_file = BooleanField(
_("The app uses a specific configuration file"), _("The app uses a specific configuration file"),
description=_( description=_("Usually : .env, config.json, conf.ini, params.yml, ..."),
"Usually : .env, config.json, conf.ini, params.yml, ..."
),
default=False, default=False,
) )
@ -536,7 +524,9 @@ class Documentation(FlaskForm):
}, },
) )
pre_install = TextAreaField( pre_install = TextAreaField(
_("doc/PRE_INSTALL.md: important info to be shown to the admin before installing the app"), _(
"doc/PRE_INSTALL.md: important info to be shown to the admin before installing the app"
),
description=_("Leave empty if not relevant"), description=_("Leave empty if not relevant"),
validators=[Optional()], validators=[Optional()],
render_kw={ render_kw={
@ -544,7 +534,9 @@ class Documentation(FlaskForm):
}, },
) )
post_install = TextAreaField( post_install = TextAreaField(
_("doc/POST_INSTALL.md: important info to be shown to the admin after installing the app"), _(
"doc/POST_INSTALL.md: important info to be shown to the admin after installing the app"
),
description=_("Leave empty if not relevant"), description=_("Leave empty if not relevant"),
validators=[Optional()], validators=[Optional()],
render_kw={ render_kw={
@ -552,7 +544,9 @@ class Documentation(FlaskForm):
}, },
) )
pre_upgrade = TextAreaField( pre_upgrade = TextAreaField(
_("doc/PRE_UPGRADE.md: important info to be shown to the admin before upgrading the app"), _(
"doc/PRE_UPGRADE.md: important info to be shown to the admin before upgrading the app"
),
description=_("Leave empty if not relevant"), description=_("Leave empty if not relevant"),
validators=[Optional()], validators=[Optional()],
render_kw={ render_kw={
@ -560,7 +554,9 @@ class Documentation(FlaskForm):
}, },
) )
post_upgrade = TextAreaField( post_upgrade = TextAreaField(
_("doc/POST_UPGRADE.md: important info to be shown to the admin after upgrading the app"), _(
"doc/POST_UPGRADE.md: important info to be shown to the admin after upgrading the app"
),
description=_("Leave empty if not relevant"), description=_("Leave empty if not relevant"),
validators=[Optional()], validators=[Optional()],
render_kw={ render_kw={
@ -583,9 +579,7 @@ class MoreAdvanced(FlaskForm):
_("Handle app install URL change (change_url script)"), _("Handle app install URL change (change_url script)"),
default=True, default=True,
render_kw={ render_kw={
"title": _( "title": _("Should changing the app URL be allowed ? (change_url change)")
"Should changing the app URL be allowed ? (change_url change)"
)
}, },
) )
@ -601,9 +595,7 @@ class MoreAdvanced(FlaskForm):
# TODO : specify custom log file # TODO : specify custom log file
# custom_log_file = "/var/log/$app/$app.log" "/var/log/nginx/${domain}-error.log" # custom_log_file = "/var/log/$app/$app.log" "/var/log/nginx/${domain}-error.log"
use_fail2ban = BooleanField( use_fail2ban = BooleanField(
_( _("Protect the application against brute force attacks (via fail2ban)"),
"Protect the application against brute force attacks (via fail2ban)"
),
default=False, default=False,
render_kw={ render_kw={
"title": _( "title": _(