name: lint on: [push, pull_request] permissions: "read-all" jobs: lint: runs-on: ubuntu-20.04 timeout-minutes: 10 steps: - name: "Checkout repository" uses: "actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3" - name: "Setup Python" uses: "actions/setup-python@57ded4d7d5e986d7296eab16560982c6dd7c923b" with: python-version: "3.x" cache: pip - name: "Run pre-commit" uses: pre-commit/action@646c83fcd040023954eafda54b4db0192ce70507 - name: "Install dependencies" run: python -m pip install nox - name: "Run mypy" run: nox -s mypy