Mercurial > hg
diff contrib/automation/automation.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 | b05a3e28cf24 |
children |
line wrap: on
line diff
--- a/contrib/automation/automation.py Sat Oct 05 10:29:34 2019 -0400 +++ b/contrib/automation/automation.py Sun Oct 06 09:45:02 2019 -0400 @@ -36,8 +36,13 @@ pip = venv_bin / 'pip' python = venv_bin / 'python' - args = [str(pip), 'install', '-r', str(REQUIREMENTS_TXT), - '--disable-pip-version-check'] + args = [ + str(pip), + 'install', + '-r', + str(REQUIREMENTS_TXT), + '--disable-pip-version-check', + ] if not venv_created: args.append('-q') @@ -45,8 +50,7 @@ subprocess.run(args, check=True) os.environ['HGAUTOMATION_BOOTSTRAPPED'] = '1' - os.environ['PATH'] = '%s%s%s' % ( - venv_bin, os.pathsep, os.environ['PATH']) + os.environ['PATH'] = '%s%s%s' % (venv_bin, os.pathsep, os.environ['PATH']) subprocess.run([str(python), __file__] + sys.argv[1:], check=True)