mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-11-09 17:00:12 +01:00
lint: do yamllint install check once globally
This commit is contained in:
parent
a3b7c5ad12
commit
3f35b0b361
@ -772,6 +772,11 @@ def main():
|
|||||||
load_antiFeatures_config()
|
load_antiFeatures_config()
|
||||||
load_categories_config()
|
load_categories_config()
|
||||||
|
|
||||||
|
if options.force_yamllint:
|
||||||
|
import yamllint # throw error if it is not installed
|
||||||
|
|
||||||
|
yamllint # make pyflakes ignore this
|
||||||
|
|
||||||
# Get all apps...
|
# Get all apps...
|
||||||
allapps = metadata.read_metadata(options.appid)
|
allapps = metadata.read_metadata(options.appid)
|
||||||
apps = common.read_app_args(options.appid, allapps, False)
|
apps = common.read_app_args(options.appid, allapps, False)
|
||||||
@ -791,11 +796,6 @@ def main():
|
|||||||
if app.Disabled:
|
if app.Disabled:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if options.force_yamllint:
|
|
||||||
import yamllint # throw error if it is not installed
|
|
||||||
|
|
||||||
yamllint # make pyflakes ignore this
|
|
||||||
|
|
||||||
# only run yamllint when linting individual apps.
|
# only run yamllint when linting individual apps.
|
||||||
if options.appid or options.force_yamllint:
|
if options.appid or options.force_yamllint:
|
||||||
# run yamllint on app metadata
|
# run yamllint on app metadata
|
||||||
|
Loading…
Reference in New Issue
Block a user