mirror of
https://github.com/rdkit/rdkit.git
synced 2026-06-03 21:44:30 +08:00
* Issue #1071: add yapf configuration file * yapf formatting of Code directory * yapf formatting of Contrib directory * yapf formatting of Data directory * yapf formatting of Docs directory * yapf formatting of External directory * yapf formatting of Projects directory * yapf formatting of Regress directory * yapf formatting of Scripts directory * yapf formatting of Web directory * yapf formatting of rdkit directory
25 lines
645 B
INI
25 lines
645 B
INI
[yapf]
|
|
based_on_style = pep8
|
|
|
|
# RDkit prefers an indentation level of 2 and a maximum line length of 100
|
|
indent_width = 2
|
|
continuation_indent_width = 2
|
|
column_limit = 100
|
|
|
|
# There is always an extra line before a nested class or function definition
|
|
blank_line_before_nested_class_or_def = true
|
|
|
|
# We avoid short if condition: doSomething() on one line
|
|
join_multiple_lines = false
|
|
|
|
coalesce_brackets = true
|
|
|
|
# Avoid function arguments on separate lines and splitting lines before the first argument.
|
|
split_before_named_assigns = false
|
|
split_before_first_argument = false
|
|
|
|
|
|
[pep8]
|
|
ignore = E114,E128,E111,E121,E126,W391,W191
|
|
max-line-length = 100
|