Skip to main content

odoo-pre-commit-hooks to use in pre-commit-config.yml files

Project description

Build Status codecov version wheel supported-versions commits-since code-style-black

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.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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

oca-odoo-pre-commit-hooks-0.0.3.tar.gz (23.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

oca_odoo_pre_commit_hooks-0.0.3-py3-none-any.whl (24.8 kB view details)

Uploaded Python 3

File details

Details for the file oca-odoo-pre-commit-hooks-0.0.3.tar.gz.

File metadata

File hashes

Hashes for oca-odoo-pre-commit-hooks-0.0.3.tar.gz
Algorithm Hash digest
SHA256 68400dce68e43f47902d9e9c96f5b700403ecbaba4efe664737dfad8e28e51ca
MD5 5c3e7a2327e975fd03da41ac1c302c74
BLAKE2b-256 57ea26e58595d9c534c662e23eec882ee11c1dd7e8dd0a7d138e9160f278990d

See more details on using hashes here.

File details

Details for the file oca_odoo_pre_commit_hooks-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for oca_odoo_pre_commit_hooks-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 2de87592c1d27d5712404c24d4f49db6782131cadbf06edf97ded3bbaa046249
MD5 0a5b023be562d150455e7cc4c14cda7b
BLAKE2b-256 84aa1256b0c146cef4df1188e0c1f2b3b5cca419d728d778058b0d559ecde7d9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page