public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: Simon Marchi <simon.marchi@polymtl.ca>
To: Tom Tromey <tom@tromey.com>,
	Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
Subject: Re: [PATCH] gdb: re-format Python files using black 21.4b0
Date: Mon, 17 May 2021 10:48:52 -0400	[thread overview]
Message-ID: <d5b045dd-2b6e-f721-158b-8269ba24c70f@polymtl.ca> (raw)
In-Reply-To: <87sg2l34du.fsf@tromey.com>

On 2021-05-17 8:56 a.m., Tom Tromey wrote:
>>>>>> "Simon" == Simon Marchi via Gdb-patches <gdb-patches@sourceware.org> writes:
> 
> Simon> It's possible to add a gdb/pyproject.toml file to define some default
> Simon> options:
> 
> Simon>     [tool.black]
> Simon>     include = "\\.py(\\.in)?$"
> 
> I think adding this would be fine.

I'll probably add it later today.

The only reason I didn't send a patch right away is that I wanted to
test how it interacts with the pre-commit tool.  From my quick testing,
it didn't seem like black would pick up that config when ran from
pre-commit.  I need to dig a bit more.

But in the mean time, I'll send a patch to add gdb/pyproject.toml, and
worst case we move it later.

Simon

      reply	other threads:[~2021-05-17 14:48 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-27 21:50 Simon Marchi
2021-04-30 19:44 ` Tom Tromey
2021-05-07 14:58   ` Simon Marchi
2021-05-15 14:43     ` Hannes Domani
2021-05-16  1:21       ` Simon Marchi
2021-05-17 12:56         ` Tom Tromey
2021-05-17 14:48           ` Simon Marchi [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=d5b045dd-2b6e-f721-158b-8269ba24c70f@polymtl.ca \
    --to=simon.marchi@polymtl.ca \
    --cc=gdb-patches@sourceware.org \
    --cc=tom@tromey.com \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).