chore: migrate project config from Hatch envs to UV#73
Conversation
Co-authored-by: masci <7241+masci@users.noreply.github.com>
|
@copilot fix the ci |
Co-authored-by: masci <7241+masci@users.noreply.github.com>
Fixed in 59090f7. The CI workflows still referenced
|
|
@copilot remove the e2e tests job from the workflow |
Co-authored-by: masci <7241+masci@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
Migrates the project’s developer workflow and CI from Hatch-managed environments/tasks to uv, while keeping Hatchling as the build backend in pyproject.toml.
Changes:
- Move dev tooling dependencies into a
devoptional-dependency group and remove Hatch env/task configuration frompyproject.toml. - Update contributor/agent documentation to use
uv sync/uv run ...commands and remove the Hatch badge. - Update GitHub Actions workflows to install and use
uvfor tests, docs deployment, and publishing releases.
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
pyproject.toml |
Removes Hatch env/task config, adds dev extra, retains Hatchling build/version config. |
README.md |
Removes Hatch project badge. |
CONTRIBUTING.md |
Replaces Hatch setup/test/lint/docs instructions with uv equivalents. |
AGENTS.md |
Updates quick-reference and dev commands from Hatch to uv. |
.github/workflows/test.yml |
Switches CI to setup-uv, uv sync --extra dev, and uv run for lint/tests; removes e2e CI step. |
.github/workflows/docs.yml |
Switches docs deploy workflow from Hatch to uv. |
.github/workflows/release.yml |
Switches build/publish steps from hatch build/publish to uv build/publish. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| $ uv run ruff format --check && uv run ruff check . && uv run mypy --install-types --non-interactive src/banks && uv run pylint src/banks | ||
| ``` | ||
|
|
||
| To auto-format the code: | ||
|
|
||
| ```sh | ||
| $ uv run ruff format |
There was a problem hiding this comment.
Done in 5d395f6 — merged the two separate blocks into a single command that auto-formats and runs all lint checks:
$ uv run ruff format && uv run ruff check . && uv run mypy --install-types --non-interactive src/banks && uv run pylint src/banksCo-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: masci <7241+masci@users.noreply.github.com>
|
@copilot revert the last commit, that's not what I wanted |
…ING.md Co-authored-by: masci <7241+masci@users.noreply.github.com>
pyproject.toml:devoptional-dependency group[tool.hatch.envs.*]sections and scripts[tool.hatch.version]and[tool.hatch.build.*]sectionsAGENTS.md: Replacehatch run ...commands withuv run ...equivalentsCONTRIBUTING.md: Replace Hatch instructions with UV instructionsREADME.md: Remove Hatch project badge.github/workflows/test.yml: Replacepip install hatch+hatch run ...withastral-sh/setup-uv+uv sync --extra dev+uv run ...; remove e2e step.github/workflows/docs.yml: Replacepip install hatch+hatch run mkdocs ...withastral-sh/setup-uv+uv sync --extra dev+uv run mkdocs ....github/workflows/release.yml: Replacepip install hatch+hatch build/publishwithastral-sh/setup-uv+uv build/publishOriginal prompt
This pull request was created from Copilot chat.
🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.