How do you use the knob?
The documentation is very vague about this and doesn't gives any hint as to how you'd use them.
Sorry, I'll change that. In the meantime, you can set up a .style.yapf in the base directory of your project. In it, you will have something like:
[style]
based_on_style = pep8
spaces_before_comment = 3
Each knob is listed with a description if you use yapf --style-help.
Oh also, yapf expect specific ini section depending in which file we store it.
[style]for.style.yapf[yapf]forconfig.cfg
The documentation is still very vague. Is based_on_style on "knob"? If so, why isn't it listed as such?
Yes i also stumbled over it. can you please clarify if the capital KNOBs can just be used with lower case letters?
Oh also, yapf expect specific ini section depending in which file we store it.
[style]for.style.yapf[yapf]forconfig.cfg
If I am not wrong should not [yapf] for setup.cfg ?
Thanks in advance :)
Yes i also stumbled over it. can you please clarify if the capital KNOBs can just be used with lower case letters?
@vinnichase Yes, they can be :P
This still is unclear to me. So this works for a .styl.yapf file?
[style]
based_on_style = google
spaces_before_comment = 4
split_before_logical_operator = true
COLUMN_LIMIT = 100
SPACES_BEFORE_COMMENT = 3