mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 06:50:29 +03:00
lint.py: format
This commit is contained in:
parent
634466f8a5
commit
debac3fd61
1 changed files with 6 additions and 8 deletions
|
|
@ -16,19 +16,17 @@
|
||||||
# You should have received a copy of the GNU Affero General Public Licen
|
# You should have received a copy of the GNU Affero General Public Licen
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
from argparse import ArgumentParser
|
|
||||||
import difflib
|
import difflib
|
||||||
|
import platform
|
||||||
import re
|
import re
|
||||||
import sys
|
import sys
|
||||||
import platform
|
|
||||||
import ruamel.yaml
|
|
||||||
import urllib.parse
|
import urllib.parse
|
||||||
|
from argparse import ArgumentParser
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
from . import _
|
import ruamel.yaml
|
||||||
from . import common
|
|
||||||
from . import metadata
|
from . import _, common, metadata, rewritemeta
|
||||||
from . import rewritemeta
|
|
||||||
|
|
||||||
config = None
|
config = None
|
||||||
|
|
||||||
|
|
@ -588,7 +586,7 @@ def check_app_field_types(app):
|
||||||
fieldtype=v.__class__.__name__,
|
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 (
|
yield (
|
||||||
_(
|
_(
|
||||||
"{appid}: {field} must be a '{type}', but it is a '{fieldtype}'!"
|
"{appid}: {field} must be a '{type}', but it is a '{fieldtype}'!"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue