mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 06:50:29 +03: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:
parent
fb877c8b81
commit
007c62065d
2 changed files with 2 additions and 2 deletions
|
|
@ -35,7 +35,7 @@ notes=FIXME,XXX,TODO
|
||||||
[BASIC]
|
[BASIC]
|
||||||
|
|
||||||
# Good variable names which should always be accepted, separated by a comma
|
# 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]
|
[ELIF]
|
||||||
|
|
|
||||||
|
|
@ -142,7 +142,7 @@ def _should_file_be_generated(path, magic_string):
|
||||||
|
|
||||||
|
|
||||||
def make_website(apps, repodir, repodict):
|
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(" ", "")
|
repo_pubkey_fingerprint_stripped = repo_pubkey_fingerprint.replace(" ", "")
|
||||||
link = repodict["address"]
|
link = repodict["address"]
|
||||||
link_fingerprinted = "{link}?fingerprint={fingerprint}".format(link=link, fingerprint=repo_pubkey_fingerprint_stripped)
|
link_fingerprinted = "{link}?fingerprint={fingerprint}".format(link=link, fingerprint=repo_pubkey_fingerprint_stripped)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue