Skip to content

Commit

Permalink
Merge pull request #130 from josephnowak/feature/use-pyproject
Browse files Browse the repository at this point in the history
Adding pyproject.toml and using ruff to format the code
  • Loading branch information
josephnowak authored Oct 17, 2024
2 parents 909e090 + 4ebd424 commit 1019fb4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,17 @@ jobs:
# You can test your matrix by printing the current Python version
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- name: Install the latest version of uv
uses: astral-sh/setup-uv@v3
with:
version: "0.4.22"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ruff pytest pytest-cov
pip install .
uv pip install --system ruff pytest pytest-cov pytest-xdist
uv pip install --system .
- name: Lint with ruff
run: |
ruff check
- name: Test with pytest
run: |
pytest --cov
pytest -n 4 --cov
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ dependencies = [
"pydantic>=2.0.0",
"xarray[accel]>=2023.0.0",
"zarr>=2.0.0",
"numba>=0.60.0"
]
requires-python = ">=3.11"

Expand Down

0 comments on commit 1019fb4

Please sign in to comment.