all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: fgallina@gnu.org (Fabián Ezequiel Gallina)
To: 18819-done@debbugs.gnu.org
Subject: bug#18819: 24.3.93; python-mode: fill-paragraph breaks comments in a way that annoys "flake8"
Date: Sat, 15 Nov 2014 19:17:23 -0300	[thread overview]
Message-ID: <87fvdk153g.fsf@gnu.org> (raw)
In-Reply-To: <CAHZoxq9aF=Cth04Vfdg00Dt4cYcNoOg3OL5ZcYQM=2e6-QoeBw@mail.gmail.com>

Hello Eric,

Note that inline comments are pretty much discouraged[0].

Leaving that aside, the problem is that inline comments should fit in
their own line.  In the example you provided, you are trying to make an
inline comment that's too large to fit the line and in that case the
recommendation would be to turn it into a normal comment just before the
statement.

So, surprisingly, it seems in this case both flake8 and python.el are
right :)

[0] https://www.python.org/dev/peps/pep-0008#inline-comments



Thanks,
Fabián





      reply	other threads:[~2014-11-15 22:17 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-24 19:20 bug#18819: 24.3.93; python-mode: fill-paragraph breaks comments in a way that annoys "flake8" Eric Hanchrow
2014-11-15 22:17 ` Fabián Ezequiel Gallina [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87fvdk153g.fsf@gnu.org \
    --to=fgallina@gnu.org \
    --cc=18819-done@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.