Mercurial > public > mercurial-scm > hg-stable
comparison contrib/python-hook-examples.py @ 43076:2372284d9457
formatting: blacken the codebase
This is using my patch to black
(https://github.com/psf/black/pull/826) so we don't un-wrap collection
literals.
Done with:
hg files 'set:**.py - mercurial/thirdparty/** - "contrib/python-zstandard/**"' | xargs black -S
# skip-blame mass-reformatting only
# no-check-commit reformats foo_bar functions
Differential Revision: https://phab.mercurial-scm.org/D6971
author | Augie Fackler <augie@google.com> |
---|---|
date | Sun, 06 Oct 2019 09:45:02 -0400 |
parents | 1a184b727aff |
children | 89a2afe31e82 |
comparison
equal
deleted
inserted
replaced
43075:57875cf423c9 | 43076:2372284d9457 |
---|---|
4 from __future__ import absolute_import | 4 from __future__ import absolute_import |
5 from mercurial import ( | 5 from mercurial import ( |
6 patch, | 6 patch, |
7 util, | 7 util, |
8 ) | 8 ) |
9 | |
9 | 10 |
10 def diffstat(ui, repo, **kwargs): | 11 def diffstat(ui, repo, **kwargs): |
11 '''Example usage: | 12 '''Example usage: |
12 | 13 |
13 [hooks] | 14 [hooks] |