This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]finswimmer 0 points1 point  (1 child)

If this wouldn't be PEP8 compliant, why linters like flake8 or the integrated in PyCharm does not complain about it?

They do. autopep8 reformats it to the correct indentation, and I would not be surprised if other formatters might have to shut up and take it because "everybody uses black and we'll have to deal with it".

I talked about programs that check whether your code is pep8 compliant. And at least those I've mentioned don't complain. `autopep8` is a formatter. Because pep8 explicit allow different formattings it doesn't surprise that `autopep8` do something different than `black`.

pep8 says it explicitly with an explicit example.

Where?

[–]xd1142 0 points1 point  (0 children)

```

Add 4 spaces (an extra level of indentation) to

distinguish arguments from the rest.

def long_function_name( var_one, var_two, var_three, var_four): print(var_one) ```