feat: migrate to uv-managed project (#10)

* Initial plan

* feat: migrate to uv-managed project

Co-authored-by: ivuorinen <11024+ivuorinen@users.noreply.github.com>

* fix: align Python version in pyproject.toml and CI setup-uv config

Co-authored-by: ivuorinen <11024+ivuorinen@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: ivuorinen <11024+ivuorinen@users.noreply.github.com>
This commit is contained in:
Copilot
2026-03-13 08:42:08 +02:00
committed by GitHub
parent 2e22efac17
commit 265f8de06b
9 changed files with 463 additions and 47 deletions

View File

@@ -15,15 +15,13 @@ This guide will help you get started.
2. Set up your environment:
```bash
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
uv sync --all-groups
```
3. Install pre-commit hooks:
```bash
pre-commit install
uv run pre-commit install
```
## ✅ Development Workflow

View File

@@ -19,23 +19,21 @@ jobs:
# yamllint disable-line rule:line-length
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Set up Python
- name: Install uv
# yamllint disable-line rule:line-length
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
uses: astral-sh/setup-uv@f0ec1fc3b38f5e7cd731bb6ce540c5af426746bb # v5.4.1
with:
python-version: "3.13.2"
python-version-file: ".python-version"
- name: Install dependencies
shell: bash
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
run: uv sync --all-groups
- name: Run Ruff linting
shell: bash
run: ruff check .
run: uv run ruff check .
- name: Run tests with coverage
shell: bash
run: |
pytest --cov=aeonview --cov-report=term-missing
uv run pytest --cov=aeonview --cov-report=term-missing