Fix errors from merge and review

This commit is contained in:
Benedikt Brückmann 2021-06-25 06:42:17 +02:00
parent 3d85b91dc4
commit 675d034ac7
3 changed files with 8 additions and 5 deletions

View file

@ -1056,7 +1056,7 @@ class vcs:
"""Get a list of all the known tags, sorted from newest to oldest.""" """Get a list of all the known tags, sorted from newest to oldest."""
raise VCSException('latesttags not supported for this vcs type') raise VCSException('latesttags not supported for this vcs type')
def getref(self): def getref(self, revname=None):
"""Get current commit reference (hash, revision, etc).""" """Get current commit reference (hash, revision, etc)."""
raise VCSException('getref not supported for this vcs type') raise VCSException('getref not supported for this vcs type')

View file

@ -248,8 +248,8 @@ def get_lastbuild(builds):
return lastbuild return lastbuild
def check_update_check_data_url(app): def check_update_check_data_url(app): # noqa: D403
"""Updatecheckdata must have a valid HTTPS URL to protect checkupdates runs.""" """UpdateCheckData must have a valid HTTPS URL to protect checkupdates runs."""
if app.UpdateCheckData and app.UpdateCheckMode == 'HTTP': if app.UpdateCheckData and app.UpdateCheckMode == 'HTTP':
urlcode, codeex, urlver, verex = app.UpdateCheckData.split('|') urlcode, codeex, urlver, verex = app.UpdateCheckData.split('|')
for url in (urlcode, urlver): for url in (urlcode, urlver):

View file

@ -40,6 +40,10 @@ output_dir = locale
domain = fdroidserver domain = fdroidserver
directory = locale directory = locale
[pycodestyle]
ignore = E203,W503
max-line-length = 88
[flake8] [flake8]
ignore = E203,W503 ignore = E203,W503
max-line-length = 88 max-line-length = 88
@ -51,5 +55,4 @@ max-line-length = 88
# * rest are the conventions which are ignored by numpy conventions according to http://www.pydocstyle.org/en/stable/error_codes.html # * rest are the conventions which are ignored by numpy conventions according to http://www.pydocstyle.org/en/stable/error_codes.html
[pydocstyle] [pydocstyle]
#convention = numpy # cannot be used in combination with ignore, so we list rules seperately. #convention = numpy # cannot be used in combination with ignore, so we list rules seperately.
ignore = D100,D101,D102,D103,D104,D105,D106,D107,D203,D212,D213,D402,D413,D415,D416,D417,E203,W503 ignore = D100,D101,D102,D103,D104,D105,D106,D107,D203,D212,D213,D402,D413,D415,D416,D417
max-line-length = 88