Skip to content

⬆️ Update dependency pre-commit to v4.1.0 #48

⬆️ Update dependency pre-commit to v4.1.0

⬆️ Update dependency pre-commit to v4.1.0 #48

Workflow file for this run

---
name: Linting
# yamllint disable-line rule:truthy
on:
push:
pull_request:
workflow_dispatch:
env:
DEFAULT_PYTHON: "3.13"
jobs:
ruff:
name: Ruff
runs-on: ubuntu-latest
steps:
- name: ‡️ Check out code from GitHub
uses: actions/checkout@v4.2.2
- name: πŸ— Set up UV
uses: astral-sh/setup-uv@v5.2.1
with:
version: "latest"
python-version: ${{ env.DEFAULT_PYTHON }}
enable-cache: true
- name: πŸ— Install project dependencies
run: uv sync --all-extras --dev
- name: πŸš€ Run ruff linter
run: uv run ruff check --output-format=github .
- name: πŸš€ Run ruff formatter
run: uv run ruff format --check .
pre-commit-hooks:
name: Pre-commit hooks
runs-on: ubuntu-latest
steps:
- name: ‡️ Check out code from GitHub
uses: actions/checkout@v4.2.2
- name: πŸ— Set up UV
uses: astral-sh/setup-uv@v5.2.1
with:
version: "latest"
python-version: ${{ env.DEFAULT_PYTHON }}
enable-cache: true
- name: πŸ— Install project dependencies
run: uv sync --all-extras --dev
- name: πŸš€ Check Python AST
run: uv run pre-commit run check-ast --all-files
- name: πŸš€ Check for case conflicts
run: uv run pre-commit run check-case-conflict --all-files
- name: πŸš€ Check docstring is first
run: uv run pre-commit run check-docstring-first --all-files
- name: πŸš€ Detect Private Keys
run: uv run pre-commit run detect-private-key --all-files
- name: πŸš€ Check End of Files
run: uv run pre-commit run end-of-file-fixer --all-files
- name: πŸš€ Trim Trailing Whitespace
run: uv run pre-commit run trailing-whitespace --all-files