akretion / ak

The toolbelt for Odoo
12 stars 12 forks source link

add linters rules to ak #107

Open hparfr opened 4 days ago

hparfr commented 4 days ago
sale-workflow:
  modules:
     - sale_exception
     - base_exception
   src: https://github.com/oca/sale-workflow 16.0

product-attribute:
  modules:
     - purchase_exception
     - base_exception
  src: https://github.com/oca/purchase-exception 16.0

should be:


product-attribute:
  modules:
     - purchase_exception
  src: https://github.com/oca/purchase-exception 16.0

sale-workflow:
  modules:
     - base_exception
     - sale_exception

   src: https://github.com/oca/sale-workflow 16.0
sebastienbeau commented 4 days ago

I like the idea !

But not sure if it's ak that should do it or pre-commit.

I think we should start to take a look to pre-commit tools, maybe we can use something existing

https://github.com/adrienverge/yamllint/tree/master https://github.com/jumanjihouse/pre-commit-hook-yamlfmt https://github.com/pre-commit/pre-commit-hooks?tab=readme-ov-file#sort-simple-yaml https://github.com/leehambley/pre-commit-sort-yaml-keys https://github.com/stefan-hudelmaier/yml-sorter-pre-commit-hook/tree/master

hparfr commented 4 days ago

yes, the title is confusing.

I do not mean to impement in it in ak; but use an available tool. linter, lsp, or anthing else