google / google/yapf

Adding more properties to style

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

Description

I am actively contributing [RedBaron](https://github.com/PyCQA/redbaron) project. It has list of formattings for every node [which](https://github.com/PyCQA/redbaron/blob/master/redbaron/base_nodes.py#L12) is [based](https://github.com/PyCQA/redbaron/blob/master/redbaron/nodes.py#L5) on [Baron](https://github.com/PyCQA/baron) [project](https://github.com/PyCQA/baron/blob/master/baron/render.py#L114).

My suggestion is to add more [properties](https://github.com/google/yapf/blob/master/yapf/yapflib/style.py#L45) for every node which can help to distinct style of unique developer. It is useful if developer's style guide is based on some of 4 style guides in Python with minor changes. For instance, some developers like to have one indent (I know that it sounds crazy, but it is just example) instead of two or four.

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.