Skip to content

chore(ci): from mypy to pyright #11

chore(ci): from mypy to pyright

chore(ci): from mypy to pyright #11

Workflow file for this run

# Lint code and (optionally) apply fixes
name: Lint code
on:
pull_request:
push:
branches: [main]
schedule:
- cron: 0 0 * * 1 # Every monday
workflow_dispatch:
jobs:
auto-update:
runs-on: ubuntu-latest
if: ${{ github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' }}
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- run: pip install pre-commit
- run: pre-commit autoupdate --config ${{ inputs.config_path }}
- uses: peter-evans/create-pull-request@v5
with:
token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
branch: update/pre-commit-hooks
title: 'chore(deps): update pre-commit hooks'
commit-message: 'chore(deps): update pre-commit hooks'
pre-commit:
runs-on: ubuntu-latest
if: ${{ github.event_name != 'schedule' }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- uses: pre-commit/action@v3.0.0
- uses: pre-commit-ci/lite-action@v1.0.1
if: always()
with:
msg: 'chore(fmt): auto fixes from pre-commit hooks'