I'm currently preparing a big pep8 formating commit (damn, Ruff is incredibly powerful).
It's far from be ready, I'm still figuring out how to do things properly, but in this phase of experimentation, a two questions have arisen about which files I should format and which not, and to what scope. While the main app 'calibre' will be the point of reference, it's much less clear for others sections like:
- the various build/setup/bypy sripts => need to be updated to Python 3 or should we keep Python 2 compatibility?
- the "embed third party" (like 'polyglot', 'templite', 'tinycss', 'css_selectors' and 'odf') should it be modified or kept as it, and which ones?
I also plan to add some rules to the existing ones, such as
"D" docstyle,
"Q" quotes and surely
many others, BUT in general, I'm just beginning to experiment and explore which rules to use and which not.
And no, be assured that I will
not use "ruff format". My aim goal is to standardize the code, all while
preserving at maximum has possible the coding conventions you implicitly created.
PS: I already know that "metadata sources" and the "book store" code need to be keeped to Python 2 compatibility.