Skip to content

Commit 8f8cf6a

Browse files
authored
Flake8 does not support inline comments for any of the keys. (#2708)
* Flake8 does not support inline comments for any of the keys. * Fix flake8 E741 ambiguous variable name
1 parent e14bdfc commit 8f8cf6a

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
@@ -631,7 +631,7 @@ def install_libs(self, arch, *libs):
631631
shprint(sh.cp, *args)
632632

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

636636
def get_libraries(self, arch_name, in_context=False):
637637
"""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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy