Skip to content

chore(deps): lock file maintenance #1664

chore(deps): lock file maintenance

chore(deps): lock file maintenance #1664

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@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- name: Cache pre-commit
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4
with:
path: ~/.cache/pre-commit
key: pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}
- name: Set up python
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # 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@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- name: Cache pre-commit
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4
with:
path: ~/.cache/pre-commit
key: pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}
- name: Set up python
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # 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