Skip to content

Switch to dependency-groups (#585) #2261

Switch to dependency-groups (#585)

Switch to dependency-groups (#585) #2261

Workflow file for this run

name: Linting
on:
push:
branches:
- main
- "renovate/**"
pull_request:
jobs:
lint-this-repo:
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Cache pre-commit
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4
with:
path: ~/.cache/pre-commit
key: pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}
- name: Set up python
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
with:
python-version: "3.x"
- name: Install dependencies
run: python -m pip install pre-commit
- name: Run pre-commit
run: pre-commit run --all-files --color always --verbose
lint-the-template:
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Cache pre-commit
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4
with:
path: ~/.cache/pre-commit
key: pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}
- name: Set up python
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
with:
python-version: "3.x"
- name: Install dependencies
run: python -m pip install cookiecutter pre-commit
- name: Create template
run: cookiecutter . --no-input --output-dir cookie-template
- name: Run pre-commit
run: |-
git add .
pre-commit run --all-files --color always --verbose
working-directory: cookie-template/python-template
lint-prose:
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Run Vale
uses: errata-ai/vale-action@d89dee975228ae261d22c15adcd03578634d429c # v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
filter_mode: diff_context
reporter: github-check