google / google/yapf

Respect project editorconfig settings

Open
#826 2 comments 4 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
14k
Forks
904
PR merge metrics
No merged PRs in 30d

Description

If a project directory has a .editorconfig file, yapf should use available style settings from there instead of falling back to hard-coded defaults. For instance, if the project .editorconfig has `[*.py] indent_size = 2` then yapf should not indent by 4 (unless it has an explicit indent_width = 4).

Important settings to respect: `indent_size`, `indent_style`, and `max_line_length`.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.