Skip to content

[CI] geospatial: satisfy pre-commit across all addons#5

Merged
leNeo merged 1 commit into
19.0-mig-base_geoenginefrom
19.0-mig-precommit-fixes
Jun 28, 2026
Merged

[CI] geospatial: satisfy pre-commit across all addons#5
leNeo merged 1 commit into
19.0-mig-base_geoenginefrom
19.0-mig-precommit-fixes

Conversation

@leNeo

@leNeo leNeo commented Jun 28, 2026

Copy link
Copy Markdown
Owner

Why

The pre-commit workflow only runs on pull_request events. The 19.0-mig-base_geoengine branch was built via direct pushes, so pre-commit had never gated it. The first PR to open against it (#4) surfaced the whole accumulated lint debt at once.

This PR runs pre-commit run --all-files and commits the result so the branch is green.

What

  • prettier (incl. @prettier/plugin-xml) + eslint --fix autoformatting across base_geoengine, geoengine_swisstopo, geoengine_drone_ortho and BRANCHES.md.
  • eslint no-use-before-define (real error): reorder _doRegister() above ensureProjectionsRegistered() in geoengine_swisstopo/.../proj4_setup.esm.js (function is hoisted, behaviour unchanged).
  • whool: add the missing geoengine_tools/pyproject.toml.
  • oca-gen-addon-readme: generate the missing README.rst + static/description/index.html for geoengine_drone_ortho, geoengine_drone_ortho_swisstopo, geoengine_swisstopo, geoengine_tools, and refresh stale ones.

Verification

pre-commit run --all-filesall hooks pass (whool, readme, prettier, eslint, ruff, pylint_odoo).

Note

Overlaps slightly with #4 on geoengine_tools (pyproject.toml, README.rst). Whichever merges second needs a trivial rebase.

🤖 Generated with Claude Code

The migration branch was pushed directly (never via PR), so the
pre-commit workflow — which only runs on pull_request events — had
never gated it. Running `pre-commit run --all-files` surfaces the
accumulated lint debt. This commit applies the fixes:

- prettier (incl. plugin-xml) and eslint --fix autoformatting across
  base_geoengine / geoengine_swisstopo / geoengine_drone_ortho and
  BRANCHES.md
- eslint no-use-before-define: reorder _doRegister() above
  ensureProjectionsRegistered() in geoengine_swisstopo proj4_setup
- whool: add missing geoengine_tools/pyproject.toml
- oca-gen-addon-readme: generate the missing README.rst /
  static/description for geoengine_drone_ortho,
  geoengine_drone_ortho_swisstopo, geoengine_swisstopo, geoengine_tools
  and refresh the stale ones

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@leNeo leNeo merged commit 49bf838 into 19.0-mig-base_geoengine Jun 28, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant