odoo-pre-commit-hooks to use in pre-commit-config.yml files
Project description
odoo-pre-commit-hooks
OCA's custom pre-commit hooks for Odoo modules
Installation
You don't need to install it directly only configure your ".pre-commit-config.yaml" file
Even you can install using github directly
pip install -U git+https://github.com/OCA/odoo-pre-commit-hooks.git@main
Usage pre-commit-config.yaml
Add to your ".pre-commit-config.yaml" configuration file the following input
- repo: https://github.com/OCA/odoo-pre-commit-hooks
rev: main # Change to last version or git sha
hooks:
- id: oca-checks-odoo-module-local
Usage using directly the entry points
If you install directly the package from github you can use the entry points:
* HOOK-APP (TODO ADD ALL HOOKS HERE)
Licenses
This repository is licensed under AGPL-3.0.
However, each module can have a totally different license, as long as they adhere to Odoo Community Association (OCA)
policy. Consult each module's __manifest__.py
file, which contains a license
key
that explains its license.
OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.
CHANGES
v0.0.4
- Bump version: 0.0.3 → 0.0.4
- [IMP] oca_pre_commit_hooks: Enable feature to 'enable' checks (#6)
- [IMP] oca_pre_commit_hooks: Add entrypoint arguments to disable checks (#5)
v0.0.3
- Bump version: 0.0.2 → 0.0.3
- [REF] README: Remove deprecated CI build
v0.0.2
- Bump version: 0.0.1 → 0.0.2
- [REF] CI: Re-use tox to run pre-commit in the CI with same caches and packages
- [ADD] .pre-commit-hooks.yaml: Compatible with pre-commit-hooks to use as hook id directly
v0.0.1
- [ADD] Migrate pylint-odoo checks (not related to python) to pre-commit hooks (#2)
- Initialize
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for oca-odoo-pre-commit-hooks-0.0.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7fbf992ec8922096d4fad66f56b70aa880068af862c8296d08b3889b5638d759 |
|
MD5 | 5e620d8211b90f5805ef77ac9ff1f532 |
|
BLAKE2b-256 | d75ce347000ba6783292c4dd76d459aa2b1820b120b8fee035f94a3152cb7909 |
Hashes for oca_odoo_pre_commit_hooks-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d8864afaf3aa12e554b3637b904eb0949edf37946e502e64f19dc77eae53f0f9 |
|
MD5 | 8238f9861c387a30da2c1bb2a3b68b9e |
|
BLAKE2b-256 | 3825a10f35abd20385c9c27c54ade6304820a796538f16069cf8ecb46743cfab |