OCA / pylint-odoo

Odoo plugin for Pylint
http://www.pylint.org
143 stars 168 forks source link

[ADD] pre-commit-hooks: Add pylint_odoo hook directly to be used from pre-commit.yaml directly #368

Closed moylop260 closed 2 years ago

moylop260 commented 2 years ago

It will allow to add in your pre-commit.yaml directly an entry for pylint_odoo instead of pylint

.pre-commit-config.yaml

- repo: https://github.com/OCA/pylint-odoo
  rev: 6.0.0
  hooks:
    - id: pylint_odoo

You can get the current rev in the current tags:

It is important to add the plugin in the configuration file in order to be used the pylint_odoo

[MASTER]
load-plugins=pylint_odoo

NOTE: Only pylint_odoo>=6.0.0 is compatible with this feature