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

Whitespaces inserted when using --ignore=E402 #672

Open
mateipa opened this issue Feb 14, 2023 · 1 comment
Open

Whitespaces inserted when using --ignore=E402 #672

mateipa opened this issue Feb 14, 2023 · 1 comment

Comments

@mateipa
Copy link

mateipa commented Feb 14, 2023

$ echo "x*2 + 1" | autopep8 -
x*2 + 1

$ echo "x*2 + 1" | autopep8 --ignore=E402 -
x * 2 + 1

E402 is related to top-level imports only but not to whitespaces.

Your Environment

  • Python version: 3.8.10
  • autopep8 version: 2.0.1 (pycodestyle: 2.10.0)
  • Platform: linux
@nbaju1
Copy link

nbaju1 commented Feb 15, 2023

This happens when you add any ignore (at least the 10+ random ones I tested) like this.

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

2 participants