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

E121 false positives. #627

Closed
dementedhedgehog opened this issue Mar 9, 2017 · 2 comments
Closed

E121 false positives. #627

dementedhedgehog opened this issue Mar 9, 2017 · 2 comments

Comments

@dementedhedgehog
Copy link

dementedhedgehog commented Mar 9, 2017

We have an in house standard of 2 spaces which can't be changed. So this problem is caused by assumptions about indent?

This code works with four spaces indent and fails with E121 with an indent of two spaces

x = [  
  1,
  2
]

@maxnoe
Copy link

maxnoe commented Mar 15, 2017

pycodestyle tests for the style proposed in PEP 8. PEP 8 specifically demands 4 spaces.
https://www.python.org/dev/peps/pep-0008/

@sigmavirus24
Copy link
Member

@maxnoe, that's not a particularly helpful response.

@dementedhedgehog see also #524

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants