Skip to content

Commit

Permalink
chore: move from poetry to uv
Browse files Browse the repository at this point in the history
  • Loading branch information
brownben committed Apr 10, 2024
1 parent 3918eab commit 1ae0189
Show file tree
Hide file tree
Showing 5 changed files with 131 additions and 1,189 deletions.
21 changes: 12 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,29 +50,32 @@ jobs:
with:
python-version: '3.11'

- name: Install Poetry
run: curl -sSL https://install.python-poetry.org | python3 -
- name: Install `uv`
run: curl -LsSf https://astral.sh/uv/install.sh | sh

- name: Install Dependencies
run: poetry install
run: |
uv pip compile pyproject.toml --extra dev -o requirements-dev.txt
uv venv
source .venv/bin/activate
uv pip install -r requirements-dev.txt
- name: Typecheck
working-directory: backend
run: poetry run mypy
run: mypy

- name: Format
working-directory: backend
run: |
poetry run black . --check
poetry run isort . --check
ruff format . --check
- name: Lint
working-directory: backend
run: |
poetry run ruff check .
ruff check .
- name: Test
working-directory: backend
run: |
poetry run coverage run -m unittest
poetry run coverage report --skip-empty
coverage run -m unittest
coverage report --skip-empty
8 changes: 0 additions & 8 deletions backend/README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,10 @@
# Backend

```sh
# Install Dependencies
poetry install

# Open Virtual Enviroment
poetry shell

# Fix Style
isort .
ruff format .

# Check style matches
isort . --check-only
ruff format . --check

# Typecheck
Expand Down
Loading

0 comments on commit 1ae0189

Please sign in to comment.