Skip to content

Commit

Permalink
wip: migrate from pipenv to uv
Browse files Browse the repository at this point in the history
  • Loading branch information
hectcastro committed Dec 12, 2024
1 parent 029b938 commit 20d5cb8
Show file tree
Hide file tree
Showing 6 changed files with 325 additions and 470 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
push:
branches:
- main
- uv
pull_request:

jobs:
Expand All @@ -23,21 +24,21 @@ jobs:

build:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
# if: github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- uses: astral-sh/setup-uv@v4
with:
python-version: "3.12"
cache: "pipenv"
enable-cache: true
cache-dependency-glob: 'uv.lock'

- name: Install pipenv
run: |
curl https://raw.githubusercontent.com/pypa/pipenv/master/get-pipenv.py | python
- uses: actions/setup-python@v5
with:
python-version-file: 'pyproject.toml'

- name: Install Python dependencies
run: |
pipenv install --deploy --dev
uv sync --all-extras --dev
- name: Run code linter and formatter
run: |
Expand Down
12 changes: 6 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
format:
pipenv run ruff format 2020 2021 2024
uv run ruff format 2020 2021 2024

lint:
pipenv run ruff check 2020 2021 2024
uv run ruff check 2020 2021 2024

types:
find 2020 -maxdepth 1 -mindepth 1 -type d | xargs -n1 pipenv run mypy
find 2021 -maxdepth 1 -mindepth 1 -type d | xargs -n1 pipenv run mypy
find 2024 -maxdepth 1 -mindepth 1 -type d | xargs -n1 pipenv run mypy
find 2020 -maxdepth 1 -mindepth 1 -type d | xargs -n1 uv run mypy
find 2021 -maxdepth 1 -mindepth 1 -type d | xargs -n1 uv run mypy
find 2024 -maxdepth 1 -mindepth 1 -type d | xargs -n1 uv run mypy

ci: lint types
pipenv run ruff format --check 2020 2021 2024
uv run ruff format --check 2020 2021 2024

.PHONY: ci format lint types
18 changes: 0 additions & 18 deletions Pipfile

This file was deleted.

Loading

0 comments on commit 20d5cb8

Please sign in to comment.