Skip to content

Commit

Permalink
add uv for linting (#450)
Browse files Browse the repository at this point in the history
  • Loading branch information
d-chambers authored Oct 19, 2024
1 parent 3d635c1 commit e6ddf30
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,19 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: "get tags"
run: |
git fetch --tags --force # Retrieve annotated tags.
- name: Install uv
uses: astral-sh/setup-uv@v3

- uses: actions/setup-python@v5
with:
python-version: '3.12'

- name: install linting packages
run: pip install pre-commit --break-system-packages
run: uv tool install pre-commit

- name: run all precommits
run: pre-commit run --files dascore/**/*
run: uv run pre-commit run --all

0 comments on commit e6ddf30

Please sign in to comment.