From e6ddf306750846a8775ff2642fc969280cecf341 Mon Sep 17 00:00:00 2001 From: Derrick Chambers Date: Fri, 18 Oct 2024 20:25:23 -0700 Subject: [PATCH] add uv for linting (#450) --- .github/workflows/lint.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 36c06f35..01807ae1 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -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