Skip to content

Conversation

@grizz
Copy link
Member

@grizz grizz commented Nov 23, 2025

  • Update version bump and tag

  • Add cli args

  • update cli args

  • change cli arg name

  • Use existing nogit arg

solababs and others added 7 commits November 23, 2025 14:18
* Update version bump and tag

* Add cli args

* update cli args

* change cli arg name

* Use existing nogit arg
Migrate from Poetry to modern pyproject.toml with hatchling build backend
to follow current Python packaging best practices. Replace legacy linting
tools with ruff for better performance and unified tooling. Update CI to
use uv for faster dependency resolution.

Major changes:
- Replace Poetry with hatchling build backend and uv dependency management
- Replace black/isort/flake8/pyupgrade with comprehensive ruff configuration
- Update CI workflows to use uv instead of poetry/tox
- Fix deprecated pkg_resources import, use importlib.metadata instead
- Remove Python 3.8 support (EOL)
- Add py.typed marker file for type checking infrastructure
- Apply ruff formatting to all source files
- Upgrade all dependencies to latest compatible versions

All 119 tests passing with 73% coverage.
The tox.ini file was still configured to run 'poetry install' which
was causing CI failures since we migrated to uv. Updated to use
'uv sync --all-extras' and 'uv run pytest' instead.

Fixes CI test failures on all Python versions.
The test_git_manager_sync_with_merge test performs git merges which
create commits. Git requires user.name and user.email to be configured
to create commits. Added git configuration step in the CI workflow to
fix this test failure.

Fixes: fatal: empty ident name (for <runner@...>) not allowed
Use the CODECOV_TOKEN secret to authenticate codecov uploads and avoid
rate limiting issues.
@codecov
Copy link

codecov bot commented Nov 24, 2025

Codecov Report

❌ Patch coverage is 78.43137% with 11 lines in your changes missing coverage. Please review.
✅ Project coverage is 73.06%. Comparing base (d3879e0) to head (630ff4e).
⚠️ Report is 14 commits behind head on main.

Files with missing lines Patch % Lines
src/ctl/plugins/version_base.py 57.14% 6 Missing ⚠️
src/ctl/plugins/git.py 72.72% 3 Missing ⚠️
src/ctl/plugins/semver2.py 90.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #85      +/-   ##
==========================================
- Coverage   77.23%   73.06%   -4.17%     
==========================================
  Files          33       34       +1     
  Lines        2025     2599     +574     
==========================================
+ Hits         1564     1899     +335     
- Misses        461      700     +239     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Renamed the command-line flag from --nogit to --no-git-tag to make
it clearer what the flag does (skips creating a git tag). The internal
parameter name remains 'nogit' for backward compatibility.

Updated documentation to reflect the new flag name.
Changed the internal variable name from 'nogit' to 'no_git_tag' for
better clarity and consistency with the command-line flag.

Updated files:
- src/ctl/plugins/version_base.py
- src/ctl/plugins/semver2.py
- tests/util.py
- tests/test_plugin_semver2.py

All tests passing.
@grizz grizz requested a review from vegu November 28, 2025 00:10
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.

3 participants