Skip to content

Commit a3439c8

Browse files
author
Thiago Perrotta
committed
Create a version of yapf that supports both "chromium" and "yapf"
This is intended to support a staggered migration from v0.29.0 to >=v0.30. c.f. https://bugs.chromium.org/p/chromium/issues/detail?id=1306598#c8
1 parent ee4c28e commit a3439c8

File tree

6 files changed

+277
-260
lines changed

6 files changed

+277
-260
lines changed

.style.yapf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[style]
22
# YAPF uses the chromium style
3-
based_on_style = chromium
3+
based_on_style = yapf

CHANGELOG

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
# All notable changes to this project will be documented in this file.
33
# This project adheres to [Semantic Versioning](http://semver.org/).
44

5+
## [0.29.1] 2023-02-13
6+
### Added
7+
- Renamed "chromium" style to "yapf". Chromium will now use PEP-8 directly.
8+
For the time being, both styles will co-exist to ease migration.
9+
510
## [0.29.0] 2019-11-28
611
### Added
712
- Add the `--quiet` flag to suppress output. The return code is 1 if there are

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,8 @@ with a ``[yapf]`` heading. For example:
178178
179179
The ``based_on_style`` setting determines which of the predefined styles this
180180
custom style is based on (think of it like subclassing). Four
181-
styles are predefined: ``pep8`` (default), ``chromium``, ``google`` and
182-
``facebook`` (see ``_STYLE_NAME_TO_FACTORY`` in style.py_).
181+
styles are predefined: ``pep8`` (default), ``chromium``, ``yapf``, ``google``
182+
and ``facebook`` (see ``_STYLE_NAME_TO_FACTORY`` in style.py_).
183183

184184
.. _style.py: https://github.com/google/yapf/blob/master/yapf/yapflib/style.py#L445
185185

yapf/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
from yapf.yapflib import style
4141
from yapf.yapflib import yapf_api
4242

43-
__version__ = '0.29.0'
43+
__version__ = '0.29.1'
4444

4545

4646
def main(argv):

0 commit comments

Comments
 (0)