Skip to content

Commit 3eed521

Browse files
committed
fix(pre-commit): use correct stages syntax for manual hooks
`manual: true` is not valid pre-commit syntax and gets silently ignored, causing oca-gen-addon-readme and oca-gen-external-dependencies to run in CI. The README hook then fails due to platform-dependent docutils table rendering differences between Ubuntu (CI) and macOS. Replace with `stages: [manual]` which is the correct pre-commit way to exclude hooks from normal runs.
1 parent d52e81f commit 3eed521

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ repos:
6060
- --if-source-changed
6161
- --keep-source-digest
6262
- --convert-fragments-to-markdown
63-
manual: true
63+
stages: [manual]
6464
- id: oca-gen-external-dependencies
65-
manual: true
65+
stages: [manual]
6666
- id: oca-gen-addons-table
6767
- repo: https://github.com/OCA/odoo-pre-commit-hooks
6868
rev: v0.1.7

0 commit comments

Comments
 (0)