Rename master branch to main

pull/896/head
Bill Wendling 2 years ago
parent 7fed727275
commit 503bc40d60
  1. 1
      CHANGELOG
  2. 8
      README.rst
  3. 2
      plugins/README.rst

@ -4,6 +4,7 @@
## [0.31.0] UNRELEASED
### Added
- Renamed 'master' brannch to 'main'.
- Add 'BLANK_LINES_BETWEEN_TOP_LEVEL_IMPORTS_AND_VARIABLES' to support setting
a custom number of blank lines between top-level imports and variable
definitions.

@ -6,12 +6,12 @@ YAPF
:target: https://badge.fury.io/py/yapf
:alt: PyPI version
.. image:: https://travis-ci.org/google/yapf.svg?branch=master
.. image:: https://travis-ci.org/google/yapf.svg?branch=main
:target: https://travis-ci.org/google/yapf
:alt: Build status
.. image:: https://coveralls.io/repos/google/yapf/badge.svg?branch=master
:target: https://coveralls.io/r/google/yapf?branch=master
.. image:: https://coveralls.io/repos/google/yapf/badge.svg?branch=main
:target: https://coveralls.io/r/google/yapf?branch=main
:alt: Coverage status
@ -179,7 +179,7 @@ custom style is based on (think of it like subclassing). Four
styles are predefined: ``pep8`` (default), ``google``, ``yapf``, and ``facebook``
(see ``_STYLE_NAME_TO_FACTORY`` in style.py_).
.. _style.py: https://github.com/google/yapf/blob/master/yapf/yapflib/style.py#L445
.. _style.py: https://github.com/google/yapf/blob/main/yapf/yapflib/style.py#L445
It's also possible to do the same on the command line with a dictionary. For
example:

@ -65,7 +65,7 @@ directory:
.. code-block:: bash
# From the root of your git project.
curl -o pre-commit.sh https://raw.githubusercontent.com/google/yapf/master/plugins/pre-commit.sh
curl -o pre-commit.sh https://raw.githubusercontent.com/google/yapf/main/plugins/pre-commit.sh
chmod a+x pre-commit.sh
mv pre-commit.sh .git/hooks/pre-commit

Loading…
Cancel
Save