mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 15:00:30 +03:00
Format files with ruff
This commit is contained in:
parent
df27405d8b
commit
dbdefe200c
3 changed files with 9 additions and 7 deletions
|
|
@ -27,7 +27,6 @@
|
||||||
# client app so its not easy for the server to distinguish this from
|
# client app so its not easy for the server to distinguish this from
|
||||||
# the F-Droid client.
|
# the F-Droid client.
|
||||||
|
|
||||||
|
|
||||||
import collections
|
import collections
|
||||||
import defusedxml.minidom
|
import defusedxml.minidom
|
||||||
import git
|
import git
|
||||||
|
|
|
||||||
|
|
@ -282,13 +282,13 @@ def main():
|
||||||
msg += '\n\n'
|
msg += '\n\n'
|
||||||
msg += (
|
msg += (
|
||||||
_(
|
_(
|
||||||
'''To complete the setup, add your APKs to "%s"
|
"""To complete the setup, add your APKs to "%s"
|
||||||
then run "fdroid update -c; fdroid update". You might also want to edit
|
then run "fdroid update -c; fdroid update". You might also want to edit
|
||||||
"config.yml" to set the URL, repo name, and more. You should also set up
|
"config.yml" to set the URL, repo name, and more. You should also set up
|
||||||
a signing key (a temporary one might have been automatically generated).
|
a signing key (a temporary one might have been automatically generated).
|
||||||
|
|
||||||
For more info: https://f-droid.org/docs/Setup_an_F-Droid_App_Repo
|
For more info: https://f-droid.org/docs/Setup_an_F-Droid_App_Repo
|
||||||
and https://f-droid.org/docs/Signing_Process'''
|
and https://f-droid.org/docs/Signing_Process"""
|
||||||
)
|
)
|
||||||
% os.path.join(fdroiddir, 'repo')
|
% os.path.join(fdroiddir, 'repo')
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -214,7 +214,7 @@ regex_checks = {
|
||||||
_("Forbidden HTML tags"),
|
_("Forbidden HTML tags"),
|
||||||
),
|
),
|
||||||
(
|
(
|
||||||
re.compile(r'''.*\s+src=["']javascript:.*'''),
|
re.compile(r""".*\s+src=["']javascript:.*"""),
|
||||||
_("Javascript in HTML src attributes"),
|
_("Javascript in HTML src attributes"),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
|
@ -459,9 +459,12 @@ def check_builds(app):
|
||||||
"Branch '{branch}' used as commit in srclib '{srclib}'"
|
"Branch '{branch}' used as commit in srclib '{srclib}'"
|
||||||
).format(branch=s, srclib=srclib)
|
).format(branch=s, srclib=srclib)
|
||||||
else:
|
else:
|
||||||
yield _(
|
yield (
|
||||||
'srclibs missing name and/or @'
|
_('srclibs missing name and/or @')
|
||||||
) + ' (srclibs: ' + srclib + ')'
|
+ ' (srclibs: '
|
||||||
|
+ srclib
|
||||||
|
+ ')'
|
||||||
|
)
|
||||||
for key in build.keys():
|
for key in build.keys():
|
||||||
if key not in supported_flags:
|
if key not in supported_flags:
|
||||||
yield _('%s is not an accepted build field') % key
|
yield _('%s is not an accepted build field') % key
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue