The prek and pre-commit hook for odooscan, the quality and security scanner for Odoo modules. It installs odooscan's prebuilt wheel from PyPI, so you don't need a Rust toolchain.
repos:
- repo: https://github.com/avanserv/odooscan-pre-commit
rev: v0.10.0
hooks:
- id: odooscanThe hook runs oscn check on the whole repository whenever a Python, XML or CSV file changes,
since its rules compare modules with each other. Put the addons path, the series and a baseline in
odooscan.toml or [tool.odooscan]; see odooscan's
README.
This repository holds no code. Each odooscan release updates the pinned version here and tags this
repository with the same version, so prek autoupdate picks it up.