Existential doubt: Python line size
José Matos
jaomatos at gmail.com
Thu Jun 13 18:08:01 UTC 2024
Dear developers,
I would like to reformat the Python code. My major doubt is on what
it should be the maximum line size for Python code.
Traditional wisdom, coming from standard screens of the 80's set it to
80.
Two of the best used tools to reformat Python code, black and ruff, set
this limit to 88.
Personally I prefer 96. And I am pushing for this change.
Although modern terminals have more lines and rows (for example the
shell screen that I use have 236 rows by 90 lines) we need to set some
common ground.
So my question to you is: what do you think that the limit should be?
I do not mind to share this limit with the C++ code, after all most of
the same rational applies.
Does anyone can help me with this existential doubt? :-D
Best regards,
PS: The reason to ask this is that I have batch of changes to commit
but I would like to set this before committing to avoid too much code
churn.
--
José Abílio
More information about the lyx-devel
mailing list