tests/test-check-format.t
author Pulkit Goyal <7895pulkit@gmail.com>
Wed, 19 Feb 2020 13:39:00 +0530
branchstable
changeset 44404 6d121acbb82e
parent 43692 2d8d4e08c493
child 44147 5e84a96d865b
permissions -rw-r--r--
remotefilelog: add 'changelog' arg to shallowcg1packer.generate (issue6269) This cause traceback on widening using narrow extension when remotefilelog is enabled. Differential Revision: https://phab.mercurial-scm.org/D8134
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
43347
abb95b6f79d3 formatting: using black to check for formatting
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 43237
diff changeset
     1
#require black
43095
fb41ea2ea076 formatting: introduce a `test-check-format-black.t` that enforce formatting
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
     2
fb41ea2ea076 formatting: introduce a `test-check-format-black.t` that enforce formatting
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
     3
  $ cd $RUNTESTDIR/..
43692
2d8d4e08c493 tests: verify that Python scripts are blackened
Gregory Szorc <gregory.szorc@gmail.com>
parents: 43386
diff changeset
     4
  $ black --config=black.toml --check --diff `hg files 'set:(**.py + grep("^#!.*python")) - mercurial/thirdparty/** - "contrib/python-zstandard/**"'`
43095
fb41ea2ea076 formatting: introduce a `test-check-format-black.t` that enforce formatting
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
     5