![]() Why do I say that line length affects indentation? Basically because if you have a line length of 80 and the function call has 6 parameters and ends in the column 95, then it will get indented in multiple lines. Line length affects spacing and affects indentation, but it does not change formatting rules. ![]() are only affected by string normalization and by trailing commas. If you think about it, the formatting of the code, the actual text, expressions, function calls, definitions. Please don't reply quite yet and bear with me on the next paragraphs.Īt this point, if I haven't missed anything, in black, there are basically three arguments that change the output of the program: The thing is, I've been experimenting personally with several formatters, and several options for some formatters, and black seems the one that fits better if only for one small, tiny thing. you'll go for yapf, autopep8, or any other formatter. that's the aim of the project, to have an opinionated standard that people might or might not like, so if you like it you use it, and if you don't then. Łukasz I've been playing with Black for a while, and I'm pretty sure, that looking at the aim of the project you'll have a strong position about why something might or might not be accepted, since basically as the project states, this is an opinionated code formatter, right?Īctually, when I look at the output, the thing is that I can agree on some formatting and maybe dislike or not be completely comfortable with other formatting options.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |