Lines Matching +refs:google +refs:set +refs:c +refs:style
9 .. image:: https://travis-ci.org/google/yapf.svg?branch=master
10 :target: https://travis-ci.org/google/yapf
13 .. image:: https://coveralls.io/repos/google/yapf/badge.svg?branch=master
14 :target: https://coveralls.io/r/google/yapf?branch=master
28 best formatting that conforms to the style guide, even if the original code
29 didn't violate the style guide. The idea is also similar to the 'gofmt' tool for
32 made, the style remains consistent throughout the project and there's no point
33 arguing about style in every code review.
36 programmer would write if they were following the style guide. It takes away
95 [--style STYLE] [--style-help] [--no-local-style] [-p]
114 --style STYLE specify formatting style: either a style name (for
115 example "pep8" or "google"), or the name of a file
116 with style settings. The default is pep8 unless a
117 .style.yapf or setup.cfg file located in the same
121 --style-help show style settings and exit; this output can be saved
122 to .style.yapf to make your settings permanent
123 --no-local-style don't search for local style definition
140 Formatting style
143 The formatting style used by YAPF is configurable and there are many "knobs"
144 that can be used to tune how YAPF does formatting. See the ``style.py`` module
147 To control the style, run YAPF with the ``--style`` argument. It accepts one of
148 the predefined styles (e.g., ``pep8`` or ``google``), a path to a configuration
149 file that specifies the desired style, or a dictionary of key/value pairs.
152 with a ``[style]`` heading. For example:
156 [style]
162 custom style is based on (think of it like subclassing).
169 --style='{based_on_style: chromium, indent_width: 4}'
171 This will take the ``chromium`` base style and modify it to have four space
174 YAPF will search for the formatting style in the following manner:
177 2. In the `[style]` section of a `.style.yapf` file in either the current
181 4. In the `~/.config/yapf/style` file in your home directory.
183 If none of those files are found, the default style is used (PEP8).
196 'c':927}
213 x = {'a': 37, 'b': 42, 'c': 927}
245 A ``style_config`` argument: Either a style name or a path to a file that contains
246 formatting style settings. If None is specified, use the default style
247 as set in ``style.DEFAULT_STYLE_FACTORY``.
357 ``DEDENT_CLOSING_BRACKETS`` is set. For example:
382 The style for continuation alignment. Possible values are:
496 Split before a dictionary or set generator (comp_for). For example, note
599 with development. It will format things to coincide with the style guide, but
628 ``dedent_closing_brackets`` in your style. Note that in this case all
630 that style. This provides consistency across the formatted codebase.
695 easily determine if a splitting decision will violate one of the style