Patchwork [3,of,5,BLACKGNAROK] formatting: update example config to match the setting we uses

login
register
mail settings
Submitter Pierre-Yves David
Date Oct. 7, 2019, 4:15 p.m.
Message ID <176c569d499555cc6452.1570464911@nodosa.octobus.net>
Download mbox | patch
Permalink /patch/42065/
State Accepted
Headers show

Comments

Pierre-Yves David - Oct. 7, 2019, 4:15 p.m.
# HG changeset patch
# User Pierre-Yves David <pierre-yves.david@octobus.net>
# Date 1570463432 14400
#      Mon Oct 07 11:50:32 2019 -0400
# Node ID 176c569d499555cc64522bf8bd1e5acddc92a991
# Parent  99946ed8e49657d0678426b9fda3958bd102ed67
# EXP-Topic blackgnarok-bytemageddon
# Available At https://bitbucket.org/octobus/mercurial-devel/
#              hg pull https://bitbucket.org/octobus/mercurial-devel/ -r 176c569d4995
formatting: update example config to match the setting we uses

The commit message doing formatting mention this invocation and it seems to
match what we have in the repo. So we update the example config.
Augie Fackler - Oct. 7, 2019, 4:18 p.m.
> On Oct 7, 2019, at 12:15, Pierre-Yves David <pierre-yves.david@ens-lyon.org> wrote:
> 
> # HG changeset patch
> # User Pierre-Yves David <pierre-yves.david@octobus.net>
> # Date 1570463432 14400
> #      Mon Oct 07 11:50:32 2019 -0400
> # Node ID 176c569d499555cc64522bf8bd1e5acddc92a991
> # Parent  99946ed8e49657d0678426b9fda3958bd102ed67
> # EXP-Topic blackgnarok-bytemageddon
> # Available At https://bitbucket.org/octobus/mercurial-devel/
> #              hg pull https://bitbucket.org/octobus/mercurial-devel/ -r 176c569d4995
> formatting: update example config to match the setting we uses
> 
> The commit message doing formatting mention this invocation and it seems to
> match what we have in the repo. So we update the example config.

We have a pyproject.toml that (in theory) should take care of the line length param. I don't think the -t py33 is required at all.

> 
> diff --git a/contrib/examples/fix.hgrc b/contrib/examples/fix.hgrc
> --- a/contrib/examples/fix.hgrc
> +++ b/contrib/examples/fix.hgrc
> @@ -11,5 +11,5 @@ rustfmt:pattern = set:**.rs
> # git+https://github.com/python/black/@d9e71a75ccfefa3d9156a64c03313a0d4ad981e5
> # to have the dependencies for grey.
> #
> -# black:command = python3.7 contrib/grey.py --skip-string-normalization -
> +# black:command = python3.7 contrib/grey.py -l 80 -t py33 --skip-string-normalization -
> # black:pattern = set:**.py - hgext/fsmonitor/pywatchman/** - mercurial/thirdparty/** - "contrib/python-zstandard/**"

Patch

diff --git a/contrib/examples/fix.hgrc b/contrib/examples/fix.hgrc
--- a/contrib/examples/fix.hgrc
+++ b/contrib/examples/fix.hgrc
@@ -11,5 +11,5 @@  rustfmt:pattern = set:**.rs
 # git+https://github.com/python/black/@d9e71a75ccfefa3d9156a64c03313a0d4ad981e5
 # to have the dependencies for grey.
 #
-# black:command = python3.7 contrib/grey.py --skip-string-normalization -
+# black:command = python3.7 contrib/grey.py -l 80 -t py33 --skip-string-normalization -
 # black:pattern = set:**.py - hgext/fsmonitor/pywatchman/** - mercurial/thirdparty/** - "contrib/python-zstandard/**"