Commit Graph

2 Commits

Author SHA1 Message Date
Stéphan Sainléger
a6bc3ab6ec [IMP] prettier-format deployed pre-commit configs (16.0, 18.0)
The ``oca-gen-addon-readme`` entry is a multi-line YAML scalar. The
prettier hook rewrites it on every run in each target repo, producing a
recurring local diff against the deployed copy. Format the source configs
with the exact prettier versions deployed per version (2.7.1 for 16.0,
3.3.3 for 18.0) so the deployed files already match the hook output.

No functional change: YAML folds the scalar newlines into spaces either
way.
2026-09-23 19:49:36 +02:00
Stéphan Sainléger
20b9ce48d0 [REF] use single main branch with per-version config directories
Replace per-branch versioning (16.0, 18.0...) with a single main branch
containing version-specific subdirectories under config/.

Structure:
- config/common/: shared files deployed to all versions
- config/16.0/: Odoo 16.0 specific configs (pylintrc, ruff, pre-commit)

The deploy workflow now:
- Triggers on push to main
- Auto-detects available versions from config/*/
- For each target repo, deploys common + version-specific files

Also enables Gitea native cache in pre-commit workflow.
2026-03-07 16:48:28 +01:00