Contributors mailing list archives
Re: New repository oca/odoo-pre-commit-hooks and pylint-odoo deep refactoringby
Acsone SA/NV, Denis Roussel
Great ! +1
On Mon, Jun 27, 2022 at 10:12 PM Moises Lopez <email@example.com> wrote:
- deprecated-data-xml-nodee.g. for CSV files:- duplicate-id-csve.g. for PO files (Maybe, If we look for if exists hooks related to PO files they could be already developed from another hook project, so use it instead):- duplicate-po-message-definition- po-msgstr-variablesSo, IMHO in OCA we need to create a new project to push all these custom pre-commit hooks and add documentation of the useful projects replacing pylint-odoo checks.The name proposal is oca/odoo-pre-commit-hooks similar to main hooks repository:And we can (or not) enable the option to auto fix (we can even push checks without auto fix)Check the following discussion about creating custom repository to detect and autofix:Check the following discussion about deprecating duplicated checks if pre-commit supports:Check the following plan to create a freeze branch in pylint-odoo with the current behavior in pro to create a new version with new focus and clean code, delete old unused checks, deprecate py2 and so on:If you agree, Could you help us to create the repository in OCA, please?
Vauxoo, Moisés López Calderón