all: make newer pycodestyle happy

Apparently the "two empty lines" rule is now stricter.
This commit is contained in:
Daniel Martí 2016-11-15 20:55:06 +00:00
parent 8ee13a47e4
commit 82b1d7ad14
18 changed files with 29 additions and 0 deletions

View file

@ -33,6 +33,7 @@ def enforce_https(domain):
return (re.compile(r'.*[^sS]://[^/]*' + re.escape(domain) + r'(/.*)?'),
domain + " URLs should always use https://")
https_enforcings = [
enforce_https('github.com'),
enforce_https('gitlab.com'),
@ -47,6 +48,7 @@ def forbid_shortener(domain):
return (re.compile(r'https?://[^/]*' + re.escape(domain) + r'/.*'),
"URL shorteners should not be used")
http_url_shorteners = [
forbid_shortener('goo.gl'),
forbid_shortener('t.co'),
@ -191,6 +193,7 @@ def check_useless_fields(app):
if app.UpdateCheckName == app.id:
yield "Update Check Name is set to the known app id - it can be removed"
filling_ucms = re.compile(r'^(Tags.*|RepoManifest.*)')
@ -204,6 +207,7 @@ def check_empty_fields(app):
if not app.Categories:
yield "Categories are not set"
all_categories = set([
"Connectivity",
"Development",