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

Account for whitespace-only separation of flake8 error selectors/ignores #708

Open
PeterJCLaw opened this issue Sep 30, 2023 · 0 comments
Open

Comments

@PeterJCLaw
Copy link
Contributor

It appears that flake8 allows for ignored errors in an ignore section to be whitespace separated, without the need for commas. Autopep8 however doesn't seem to allow for this -- configs which only have whitespace separation result in none of the requested error types being ignored, nor an error about invalid config.

Python Code

print("foo")
import os  # E402

Command Line and Configuration

[flake8]
ignore =
    C401
    E402

Command Line

$ autopep8

Your Environment

  • Python version: 3.9.18
  • autopep8 version: autopep8 2.0.4 (pycodestyle: 2.11.0)
  • Platform: Ubuntu 22.04.3 LTS
PeterJCLaw added a commit to srobo/competition-simulator that referenced this issue Sep 30, 2023
See hhatto/autopep8#708. Previously running
autopep8 would move our imports around.
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

1 participant