Skip to content

add basic formatting and remove unused imports #2

add basic formatting and remove unused imports

add basic formatting and remove unused imports #2

Workflow file for this run

name: Style check
on: push
jobs:
style-check:
env:
UV_CACHE_DIR: ${{ github.workspace }}/.cache/uv
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/[email protected]
- name: Install uv
uses: astral-sh/[email protected]
with:
enable-cache: true
cache-dependency-glob: "uv.lock"
- name: Set up Python
uses: actions/[email protected]
with:
python-version-file: "pyproject.toml"
- name: Restore uv cache
uses: actions/[email protected]
with:
path: ${{ github.workspace }}/.cache/uv
key: uv-${{ runner.os }}-${{ hashFiles('uv.lock') }}
restore-keys: |
uv-${{ runner.os }}-${{ hashFiles('uv.lock') }}
uv-${{ runner.os }}
- name: Install dependencies
run: uv sync --all-extras --dev
- name: Check linting with Ruff
run: uv run ruff check
- name: Check format with Ruff
run: uv run ruff format --check
- name: Check docstring coverage
run: uv run docstr-coverage ./**/*.py --fail-under 20 --skip-file-doc --verbose=2
- name: Minimize uv cache
run: uv cache prune --ci