1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-04 22:40:12 +01:00

pylint flags "_" as bad variable name, its the gettext function

Throughout the fdroidserver code base, "_()" is used for localizing
strings.  So it should not be used as an ignored variable name.  Those
should be called "_ignored".
This commit is contained in:
Hans-Christoph Steiner 2021-02-12 10:51:26 +01:00
parent fb877c8b81
commit 007c62065d
No known key found for this signature in database
GPG Key ID: 3E177817BA1B9BFA
2 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@ notes=FIXME,XXX,TODO
[BASIC]
# Good variable names which should always be accepted, separated by a comma
good-names=i,j,k,ex,Run,_,e,f,fp
good-names=i,j,k,ex,Run,f,fp
[ELIF]

View File

@ -142,7 +142,7 @@ def _should_file_be_generated(path, magic_string):
def make_website(apps, repodir, repodict):
_, repo_pubkey_fingerprint = extract_pubkey()
_ignored, repo_pubkey_fingerprint = extract_pubkey()
repo_pubkey_fingerprint_stripped = repo_pubkey_fingerprint.replace(" ", "")
link = repodict["address"]
link_fingerprinted = "{link}?fingerprint={fingerprint}".format(link=link, fingerprint=repo_pubkey_fingerprint_stripped)