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

Comments are always formatted at 80 characters maximum #725

Open
MatthieuHernandez opened this issue Jan 29, 2024 · 0 comments
Open

Comments are always formatted at 80 characters maximum #725

MatthieuHernandez opened this issue Jan 29, 2024 · 0 comments

Comments

@MatthieuHernandez
Copy link


Python Code

This comment is not correctly formatted.

def _test():
    # This very long comment is a test to see if auto pep 8 ever works properly and cuts the line to the right length.
    print("test")

This comment is formatted at 80 characters, even if autopep8 is configured for a maximum length of 120.

def _test():
    # This very long comment is a test to see if auto pep 8 ever works
    # properly and cuts the line to the right length.
    print("test")

Command Line and Configuration

Command Line

python.exe -m autopep8 --max-line-length=120 -a --experimental

Your Environment

  • Python version: 3.9.13
  • autopep8 version: 2.0.4
  • Platform: Windows 11
  • IDE: VS Code
@MatthieuHernandez MatthieuHernandez changed the title Comments are always formatted at 80 characters maximum. Comments are always formatted at 80 characters maximum Jan 29, 2024
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