From 3f35b0b3615bd308d61859ea2834975cadaea958 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Thu, 7 Dec 2023 15:14:14 +0100 Subject: [PATCH] lint: do yamllint install check once globally --- fdroidserver/lint.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/fdroidserver/lint.py b/fdroidserver/lint.py index c0df0135..0fb97d9c 100644 --- a/fdroidserver/lint.py +++ b/fdroidserver/lint.py @@ -772,6 +772,11 @@ def main(): load_antiFeatures_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... allapps = metadata.read_metadata(options.appid) apps = common.read_app_args(options.appid, allapps, False) @@ -791,11 +796,6 @@ def main(): if app.Disabled: 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. if options.appid or options.force_yamllint: # run yamllint on app metadata