View Single Post
Old 12-14-2024, 02:10 PM   #1
un_pogaz
Chalut o/
un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.
 
un_pogaz's Avatar
 
Posts: 443
Karma: 672378
Join Date: Dec 2017
Device: Kobo
big pep8 formating

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.

Last edited by un_pogaz; 12-14-2024 at 04:25 PM.
un_pogaz is offline   Reply With Quote