Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Black and Pylint disagree on indentation #1133

Closed
claird-ot opened this issue Nov 2, 2019 · 2 comments
Closed

Black and Pylint disagree on indentation #1133

claird-ot opened this issue Nov 2, 2019 · 2 comments
Labels
T: bug Something isn't working

Comments

@claird-ot
Copy link

Consider the source

""" This is an example."""


 def abc(
     _first_quite_long_argument,
    _second_quite_long_argument,
    _third_quite_long_argument,
    _fourth_quite_long_argument,
):
    """ This is an example."""
    print("Hello?")

Black likes this fine. Pylint complains ... C0330: Wrong hanging indentation before block (add 4 spaces) .... Adding those four spaces conflicts with Black, though.

I report this as a bug, although most likely not in Black. Possibilities include:

  • PEP 8 is ambiguous;
  • Black made a mistake;
  • Pylint made a mistake; or
  • I am looking at this the wrong way.

I happen to be working with pylint 2.4.2 and black, version 19.3b0 at the moment, but other versions I've tried yield similar results.

@claird-ot claird-ot added the T: bug Something isn't working label Nov 2, 2019
@JelleZijlstra
Copy link
Collaborator

Duplicate of #1127.

@claird-ot
Copy link
Author

Thank you for your (prompt!) help, Jelle.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants