Skip to content

Openclaw/schemaforge/fix ci version detection#24

Merged
Coding-Dev-Tools merged 2 commits into
masterfrom
Openclaw/schemaforge/fix-ci-version-detection
May 19, 2026
Merged

Openclaw/schemaforge/fix ci version detection#24
Coding-Dev-Tools merged 2 commits into
masterfrom
Openclaw/schemaforge/fix-ci-version-detection

Conversation

@Coding-Dev-Tools

Copy link
Copy Markdown
Owner
  • fix(ci): extend ruff lint to tests/ and fix 3 lint errors in test_cli.py
  • fix(cli): pass version explicitly to @click.version_option

DevForge Engineer added 2 commits May 18, 2026 16:07
@click.version_option() with no arguments auto-detects version from
installed package metadata. This fails in CI because the distribution
name (schemaforge-cli) differs from the module name (schemaforge),
causing Click's CliRunner to raise RuntimeError.

Pass __version__ explicitly from the package to bypass auto-detection.

Fixes test_version CI failure across all Python versions (3.10-3.13).
@Coding-Dev-Tools Coding-Dev-Tools merged commit 8857d45 into master May 19, 2026
5 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