### Block marker
################
#This comment needs a space
foo = '' #This comment needs a space
Command Line and Configuration
Command Line
$ autopep8 --diff demo.py --ignore E266
Actual:
--- original/demo.py
+++ fixed/demo.py
@@ -1,6 +1,6 @@
-### Block marker
+# Block marker
################
-#This comment needs a space
+# This comment needs a space
-foo = '' #This comment needs a space
+foo = '' # This comment needs a space
Desired:
--- original/demo.py
+++ fixed/demo.py
@@ -1,6 +1,6 @@
### Block marker
################
-#This comment needs a space
+# This comment needs a space
-foo = '' #This comment needs a space
+foo = '' # This comment needs a space
Python Code
Command Line and Configuration
Command Line
Actual:
Desired:
In comparison:
(suggested at https://github.com/hhatto/autopep8/issues/78#issuecomment-18908780) outputs no change at all, yet I do want the other comments to be fixed so this doesn't work for me.
The same issue applies when specifying E266 via
setup.cfg
too, so I'm assuming this isn't just a CLI parsing issue.Your Environment
autopep8 1.6.0 (pycodestyle: 2.9.1)