Vauxoo / pre-commit-vauxoo

pre-commit-vauxoo python library to add a command to use all the configuration files and environment variables of Vauxoo
Other
1 stars 2 forks source link

[IMP] support disabling oca hooks through env var #116

Closed antonag32 closed 1 year ago

antonag32 commented 1 year ago

Closes https://github.com/Vauxoo/pre-commit-vauxoo/issues/115.

As is the case with pylint, this commit adds support for the environment variable OCA_HOOKS_DISABLE_CHECKS. Checks must be listed in it as a comma separated list, said checks will be added to the disable section of oca_hooks.cfg, effectively disabling them.

This lets projects disable checks through variables.sh