Skip to content

Commit eb31fac

Browse files
misl6dbnicholson
authored andcommitted
Flake8 does not support inline comments for any of the keys. (kivy#2708)
* Flake8 does not support inline comments for any of the keys. * Fix flake8 E741 ambiguous variable name (cherry picked from commit 8f8cf6a)
1 parent e7b544c commit eb31fac

File tree

2 files changed

+17
-9
lines changed

2 files changed

+17
-9
lines changed

pythonforandroid/recipe.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,7 @@ def install_libs(self, arch, *libs):
629629
shprint(sh.cp, *args)
630630

631631
def has_libs(self, arch, *libs):
632-
return all(map(lambda l: self.ctx.has_lib(arch.arch, l), libs))
632+
return all(map(lambda lib: self.ctx.has_lib(arch.arch, lib), libs))
633633

634634
def get_libraries(self, arch_name, in_context=False):
635635
"""Return the full path of the library depending on the architecture.

tox.ini

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,19 @@ commands = flake8 pythonforandroid/ tests/ ci/ setup.py
2727

2828
[flake8]
2929
ignore =
30-
E123, # Closing bracket does not match indentation of opening bracket's line
31-
E124, # Closing bracket does not match visual indentation
32-
E126, # Continuation line over-indented for hanging indent
33-
E226, # Missing whitespace around arithmetic operator
34-
E402, # Module level import not at top of file
35-
E501, # Line too long (82 > 79 characters)
36-
W503, # Line break occurred before a binary operator
37-
W504 # Line break occurred after a binary operator
30+
# Closing bracket does not match indentation of opening bracket's line
31+
E123,
32+
# Closing bracket does not match visual indentation
33+
E124,
34+
# Continuation line over-indented for hanging indent
35+
E126,
36+
# Missing whitespace around arithmetic operator
37+
E226,
38+
# Module level import not at top of file
39+
E402,
40+
# Line too long (82 > 79 characters)
41+
E501,
42+
# Line break occurred before a binary operator
43+
W503,
44+
# Line break occurred after a binary operator
45+
W504

0 commit comments

Comments
 (0)