Skip to content

Add CLI --version option#4

Merged
johnmikel merged 1 commit into
johnmikel:mainfrom
shellgeistbot:add-version-option-1
Jun 23, 2026
Merged

Add CLI --version option#4
johnmikel merged 1 commit into
johnmikel:mainfrom
shellgeistbot:add-version-option-1

Conversation

@shellgeistbot

Copy link
Copy Markdown
Contributor

Summary

  • add a top-level metricspec --version option
  • read the installed package version via importlib.metadata with a local fallback
  • cover normal and eager callback behavior in CLI tests

Fixes #1

Tests

  • pytest -q tests/integration/test_cli.py tests/test_package.py
  • ruff check src/metricspec/cli.py tests/integration/test_cli.py
  • mypy src/metricspec/cli.py

@johnmikel johnmikel left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed locally. Targeted CLI tests, version smoke, ruff, mypy, and full pytest all pass.

@johnmikel johnmikel merged commit 0be4eca into johnmikel:main Jun 23, 2026
1 check 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.

Add a metricspec --version option

2 participants