From ee12fb48890da24d588245aed36d330572283e7c Mon Sep 17 00:00:00 2001 From: Andre Miras Date: Sat, 3 Sep 2022 21:21:22 +0200 Subject: [PATCH] :rotating_light: Minor linting fixes/updates The #746 PR got me curious about the current linting state. Addressed few low hanging fruits. Removed no longer relevant/addressed ignore rules. --- kivy_ios/toolchain.py | 2 +- tox.ini | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/kivy_ios/toolchain.py b/kivy_ios/toolchain.py index 29cd67ec8..3f3651f9c 100755 --- a/kivy_ios/toolchain.py +++ b/kivy_ios/toolchain.py @@ -1498,7 +1498,7 @@ def build_info(self): if not callable(attr) and attr != 'archs': print("{}: {}".format(attr, pformat(getattr(ctx, attr)))) for arch in ctx.archs: - ul = '-' * (len(str(arch))+6) + ul = '-' * (len(str(arch)) + 6) print("\narch: {}\n{}".format(str(arch), ul)) for attr in dir(arch): if not attr.startswith("_"): diff --git a/tox.ini b/tox.ini index 1f0e96447..bce6a7fd8 100644 --- a/tox.ini +++ b/tox.ini @@ -16,10 +16,7 @@ commands = flake8 kivy_ios/ tests/ .ci/ setup.py toolchain.py [flake8] ignore = E123, # Closing bracket does not match indentation of opening bracket's line - E124, # Closing bracket does not match visual indentation E126, # Continuation line over-indented for hanging indent - E226, # Missing whitespace around arithmetic operator - E402, # Module level import not at top of file E501, # Line too long (82 > 79 characters) W503, # Line break occurred before a binary operator W504 # Line break occurred after a binary operator