From ec78348c4b6292b1a38008fa31e51f7b6b2252dc Mon Sep 17 00:00:00 2001 From: Nate Prewitt Date: Thu, 2 Mar 2023 20:45:27 -0800 Subject: [PATCH] Upgrade lint.yml action (#6370) --- .github/workflows/lint.yml | 9 +++++---- .pre-commit-config.yaml | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index fd9f4202..df275c51 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -1,8 +1,6 @@ name: Lint code -on: - push: - pull_request: +on: [push, pull_request] permissions: contents: read @@ -10,10 +8,13 @@ permissions: jobs: lint: runs-on: ubuntu-20.04 + timeout-minutes: 10 steps: - uses: actions/checkout@v3 - name: Set up Python - uses: actions/setup-python@v3 + uses: actions/setup-python@v4 + with: + python-version: "3.x" - name: Run pre-commit uses: pre-commit/action@v3.0.0 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index cc18abd9..5b915dc3 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -9,7 +9,7 @@ repos: - id: end-of-file-fixer - id: trailing-whitespace - repo: https://github.com/PyCQA/isort - rev: 5.10.1 + rev: 5.12.0 hooks: - id: isort - repo: https://github.com/psf/black