From debac3fd616a8d715a9dc1b95fa4cb8f57e49484 Mon Sep 17 00:00:00 2001 From: linsui <2873532-linsui@users.noreply.gitlab.com> Date: Thu, 5 Sep 2024 02:09:55 +0800 Subject: [PATCH] lint.py: format --- fdroidserver/lint.py | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/fdroidserver/lint.py b/fdroidserver/lint.py index 1ae42852..77fe21f5 100644 --- a/fdroidserver/lint.py +++ b/fdroidserver/lint.py @@ -16,19 +16,17 @@ # You should have received a copy of the GNU Affero General Public Licen # along with this program. If not, see . -from argparse import ArgumentParser import difflib +import platform import re import sys -import platform -import ruamel.yaml import urllib.parse +from argparse import ArgumentParser from pathlib import Path -from . import _ -from . import common -from . import metadata -from . import rewritemeta +import ruamel.yaml + +from . import _, common, metadata, rewritemeta config = None @@ -588,7 +586,7 @@ def check_app_field_types(app): fieldtype=v.__class__.__name__, ) ) - elif t == metadata.TYPE_STRING and not type(v) in (str, bool, dict): + elif t == metadata.TYPE_STRING and type(v) not in (str, bool, dict): yield ( _( "{appid}: {field} must be a '{type}', but it is a '{fieldtype}'!"