hhatto / autopep8

A tool that automatically formats Python code to conform to the PEP 8 style guide.

Home Page:https://pypi.org/project/autopep8/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Some E265 errors won't be fixed

jmatsuzawa opened this issue · comments


Python Code

#print(" ")

Command Line and Configuration

Config:
N/A

Command Line

$ autopep8 --diff --select=E265 foo.py

Your Environment

  • Python version: 3.10.9
  • autopep8 version: 1.7.1 (pycodestyle: 2.9.1)
  • Platform: WSL on Windows 10 Pro

The following environment has the same issue:

  • Python version: 3.10.9
  • autopep8 version: 2.0.0 (pycodestyle: 2.10.0)
  • Platform: WSL on Windows 10 Pro

Extra Information

The following code can be fixed (without a space between quotes):

#print("")
% autopep8 --diff --select=E265 foo.py
--- original/foo.py
+++ fixed/foo.py
@@ -1 +1 @@
-#print("")
+# print("")

Thanks for reporting.

This problem has been fixed in version 2.0.1.
Please use the latest version.