Skip to content

docs: document .style.yapf INI configuration syntax - #1322

Open
reginaldalfret wants to merge 1 commit into
google:mainfrom
reginaldalfret:doc-1255-style-yapf-syntax
Open

reginaldalfret wants to merge 1 commit into
google:mainfrom
reginaldalfret:doc-1255-style-yapf-syntax

Conversation

@reginaldalfret

Copy link
Copy Markdown

Description

Fixes #1255

The \README.md\ lists the precedence order for discovering configuration files (including .style.yapf), but did not specify the required syntax or file format.

This PR adds a concise documentation note and minimal configuration example in \README.md\ clarifying that .style.yapf\ uses standard INI configuration syntax with a required [style]\ section header.

Validation

  • Checked rendering and consistency with \README.md\ configuration section.
  • Validated \git diff --check\ (0 whitespace or formatting issues).
  • Verified matching implementation in \yapf/yapflib/style.py\ (_CreateConfigParserFromConfigFile).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Please document the syntax used in .style.yapf files

1 participant