Skip to content

chore: migrate from Poetry to uv#3

Merged
Connorrmcd6 merged 1 commit into
Connorrmcd6:mainfrom
cmcdonald99:chore/migrate-poetry-to-uv
Feb 13, 2026
Merged

chore: migrate from Poetry to uv#3
Connorrmcd6 merged 1 commit into
Connorrmcd6:mainfrom
cmcdonald99:chore/migrate-poetry-to-uv

Conversation

@cmcdonald99

Copy link
Copy Markdown

Summary

  • Migrate from Poetry to uv for dependency management and project tooling (aligns with Nansen cookiecutter-python-uv-boilerplate)
  • Rewrite pyproject.toml from Poetry format to PEP 621 + hatchling build backend
  • Replace pre-commit with prek as the hook runner, expanding hooks (codespell, yamllint, yamlfmt, trailing-whitespace, etc.)
  • Restructure CI from single workflow into reusable workflow pattern (on-pr, on-merge, job-prek, job-test)
  • Update all documentation to reference uv commands
  • Bump version to 0.1.1

What does NOT change

  • All source code in src/nansen/ — zero modifications
  • All tests in tests/ — zero modifications (except fixing a B017 bugbear lint violation)
  • All examples in examples/ — zero modifications
  • Python version support (3.10+), mypy with pydantic plugin, project layout

Test plan

  • uv run pytest — 75 tests pass
  • uv run ruff check . — clean
  • uv run ruff format --check . — clean
  • uv run mypy src/ — no issues
  • uv run prek run --all-files — all 12 hooks pass
  • uv build — produces valid wheel with py.typed marker

🤖 Generated with Claude Code

Replace Poetry with uv for dependency management and project tooling
to align with the Nansen cookiecutter-python-uv-boilerplate template.

- Rewrite pyproject.toml from Poetry format to PEP 621 + hatchling
- Replace poetry.lock with uv.lock
- Expand pre-commit hooks (codespell, yamllint, yamlfmt, etc.) via prek
- Restructure CI into reusable workflows (on-pr, on-merge, job-prek, job-test)
- Update all docs (CLAUDE.md, CONTRIBUTING.md, README.md, CHANGELOG.md)
- Fix B017 bugbear violation in test_retry.py
- Bump version to 0.1.1

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@Connorrmcd6 Connorrmcd6 merged commit 8ab2f05 into Connorrmcd6:main Feb 13, 2026
5 of 6 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.

2 participants