Skip to content

Instantly share code, notes, and snippets.

@wjt
Created March 6, 2017 13:05
Show Gist options
  • Save wjt/2d169a2ee3ecc41e227b36b38f989f2b to your computer and use it in GitHub Desktop.
Save wjt/2d169a2ee3ecc41e227b36b38f989f2b to your computer and use it in GitHub Desktop.
'''TIL: pyflakes and flake8 disagree on a common question of indentation.'''
def add(left,
right,
):
'''flake8 doesn't like this style:
duellinglinters.py:6:8: E124 closing bracket does not match visual indentation
'''
return left + right
def mul(left,
right,
):
'''pylint doesn't like this style:
C: 15, 0: Wrong continued indentation (remove 1 space).
):
|^ (bad-continuation)
'''
return left * right
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment