4 Commits

Author SHA1 Message Date
Stéphan Sainléger
91111ad873 [ADD] common: ship a standard .gitignore to all repos
The pre-commit workflow runs
``git ls-files --others --exclude-from=.gitignore`` to detect files
generated by hooks that are not committed. This aborts with
"cannot use .gitignore as an exclude file" in repos that have no root
.gitignore (all Elabore addons repos).

Ship the OCA-standard .gitignore via config/common so every repo has one.
2026-09-23 20:14:38 +02:00
Stéphan Sainléger
e1c1a86ee7 [ADD] Odoo tests workflow for 16.0 and 18.0 2026-09-23 11:23:15 +02:00
Stéphan Sainléger
25e9370cc0 [ADD] support for Odoo 18.0 configuration
Add config/18.0/ with configuration files based on OCA standards:
- .pylintrc and .pylintrc-mandatory (valid-odoo-versions=18.0)
- .ruff.toml (Python linting)
- .pre-commit-config.yaml with updated hooks:
  - whool-init (new in 18.0)
  - oca-gen-external-dependencies (new in 18.0)
  - Updated prettier 3.x and eslint 9.x
- eslint.config.cjs and prettier.config.cjs (new flat config format)

Also move .eslintrc.yml and .prettierrc.yml to config/16.0/ since
18.0 uses the new CJS flat config format instead of YAML.
2026-03-07 16:54:39 +01: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