Skip to content

Migrate from Hatch to UV build system#332

Merged
wtgee merged 3 commits intodevelopfrom
copilot/remove-hatch-usage
Feb 14, 2026
Merged

Migrate from Hatch to UV build system#332
wtgee merged 3 commits intodevelopfrom
copilot/remove-hatch-usage

Conversation

Copy link
Contributor

Copilot AI commented Feb 14, 2026

Replaces Hatch with UV for build and dependency management, aligning with the POCS repository pattern and adopting modern PEP 735 dependency groups.

Build System

  • pyproject.toml: Switched from hatchling to setuptools + setuptools-scm for building
  • Version management: Now uses setuptools-scm with auto-generated _version.py files
  • Dependency groups: Migrated testing dependencies from [project.optional-dependencies] to [dependency-groups] for modern dependency management
# Before (Hatch)
[tool.hatch.envs.default]
dependencies = ["ruff>=0.5.0"]

[tool.hatch.envs.default.scripts]
lint = "ruff check ."

# After (UV)
[dependency-groups]
lint = ["ruff>=0.5.0"]

Workflows

  • CI/CD: Updated GitHub Actions to use uv sync --group <group> and uv run <command>
  • Release: Changed hatch build to uv build

Developer Experience

Commands updated throughout documentation (README, AGENTS.md, copilot-instructions):

# Before
hatch run pytest
hatch run lint
hatch build

# After
uv run pytest
uv run ruff check .
uv build

Cleanup

  • Removed click<8.3 version pin (was Hatch-specific compatibility workaround)
  • Added _version.py to .gitignore and ruff exclusions
  • Generated uv.lock for reproducible dependency resolution

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • astral.sh
    • Triggering command: /usr/bin/curl curl -LsSf REDACTED (dns block)

If you need me to access, download, or install something from one of these locations, you can either:


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 2 commits February 14, 2026 00:36
Co-authored-by: wtgee <70736+wtgee@users.noreply.github.com>
…tignore

Co-authored-by: wtgee <70736+wtgee@users.noreply.github.com>
Copilot AI changed the title [WIP] Remove all references to hatch and use uv only Migrate from Hatch to UV build system Feb 14, 2026
Copilot AI requested a review from wtgee February 14, 2026 00:40
@codecov
Copy link

codecov bot commented Feb 14, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85.11%. Comparing base (dad8fbd) to head (0d2f25c).
⚠️ Report is 4 commits behind head on develop.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop     #332   +/-   ##
========================================
  Coverage    85.11%   85.11%           
========================================
  Files           21       21           
  Lines         1344     1344           
========================================
  Hits          1144     1144           
  Misses         200      200           

☔ 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.

Copy link
Member

@wtgee wtgee left a comment

Choose a reason for hiding this comment

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

👍

@wtgee wtgee marked this pull request as ready for review February 14, 2026 00:51
@wtgee wtgee merged commit 8d2043d into develop Feb 14, 2026
4 of 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.

2 participants