Skip to content

Fixing W503 line break before binary operator puts and within comment #503

Closed
@taldcroft

Description

@taldcroft

Python Code

if (True  #
    and True
    and True):
    print(1)

Command Line and Configuration

Command Line

$ autopep8 -d --select=W503 junk.py 
--- original/junk.py
+++ fixed/junk.py
@@ -1,4 +1,4 @@
-if (True  #
-    and True
-    and True):
+if (True  # and
+    True and
+    True):
     print(1)

Your Environment

  • Python version: Python 3.6.8 :: Anaconda, Inc.
  • autopep8 version: autopep8 1.5a1 (pycodestyle: 2.5.0)
  • Platform: macOSX

Activity

self-assigned this
on Oct 4, 2019
added this to the 1.5 milestone on Dec 5, 2019
added a commit that references this issue on Dec 5, 2019
hhatto

hhatto commented on Dec 16, 2019

@hhatto
Owner

this is fix in #511 .

I plan release to version 1.5.

taldcroft

taldcroft commented on Dec 17, 2019

@taldcroft
Author

Thanks! 🥇

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Projects

No projects

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @hhatto@taldcroft

      Issue actions

        Fixing W503 line break before binary operator puts `and` within comment · Issue #503 · hhatto/autopep8