Skip to content

Commit ec78348

Browse files
authored
Upgrade lint.yml action (#6370)
1 parent 4618825 commit ec78348

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

.github/workflows/lint.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
11
name: Lint code
22

3-
on:
4-
push:
5-
pull_request:
3+
on: [push, pull_request]
64

75
permissions:
86
contents: read
97

108
jobs:
119
lint:
1210
runs-on: ubuntu-20.04
11+
timeout-minutes: 10
1312

1413
steps:
1514
- uses: actions/checkout@v3
1615
- name: Set up Python
17-
uses: actions/setup-python@v3
16+
uses: actions/setup-python@v4
17+
with:
18+
python-version: "3.x"
1819
- name: Run pre-commit
1920
uses: pre-commit/[email protected]

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ repos:
99
- id: end-of-file-fixer
1010
- id: trailing-whitespace
1111
- repo: https://github.com/PyCQA/isort
12-
rev: 5.10.1
12+
rev: 5.12.0
1313
hooks:
1414
- id: isort
1515
- repo: https://github.com/psf/black

0 commit comments

Comments
 (0)