Skip to content

chore(ci): from mypy to pyright #8

chore(ci): from mypy to pyright

chore(ci): from mypy to pyright #8

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:

Check failure on line 13 in .github/workflows/lint.yml

View workflow run for this annotation

GitHub Actions / Lint code

Invalid workflow file

The workflow is not valid. .github/workflows/lint.yml (Line: 13, Col: 3): Error calling workflow 'browniebroke/github-actions/.github/workflows/pre-commit-autoupdate.yml@v1'. The nested job 'auto-update' is requesting 'contents: write, pull-requests: write', but is only allowed 'contents: read, pull-requests: none'.
uses: browniebroke/github-actions/.github/workflows/pre-commit-autoupdate.yml@v1
if: ${{ github.event_name != 'schedule' || github.event_name != 'workflow_dispatch' }}
secrets:
gh_pat: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
with:
config_path: ".pre-commit-config.yaml"
python_version: "3.11"
branch_name: "update/pre-commit-hooks"
pull_request_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@v3
- uses: actions/setup-python@v4
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'