Skip to content

Commit

Permalink
Use uv in place of pip (#55)
Browse files Browse the repository at this point in the history
* Use uv in place of pip
  • Loading branch information
dbieber authored May 19, 2024
1 parent 82d71c6 commit 23d8026
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,16 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
python -m pip install .[test]
python -m pip install uv
python -m uv venv
python -m uv pip install .[test]
- name: Lint with ruff
run: |
ruff .
source .venv/bin/activate
python -m ruff check .
- name: Test with pytest
run: |
source .venv/bin/activate
python -m pytest
build_image:
Expand Down
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ test = [

[tool.ruff]
line-length = 180
ignore = ["E722"]
show-source = true
exclude = ['scratch']
lint.ignore = ["E722"]
output-format = "full"
exclude = ["scratch"]

[build-system]
requires = ["setuptools>=43.0.0", "wheel"]
Expand Down

0 comments on commit 23d8026

Please sign in to comment.