Skip to content
This repository was archived by the owner on Mar 26, 2025. It is now read-only.

Commit e542f37

Browse files
committed
Update pre-commit GitHub action
1 parent 09f9e06 commit e542f37

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

.github/workflows/pre-commit.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,6 @@ jobs:
99
pre-commit:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v1
13-
- uses: actions/setup-python@v1
14-
- name: set PY
15-
run: echo "::set-env name=PY::$(python -c 'import hashlib, sys;print(hashlib.sha256(sys.version.encode()+sys.executable.encode()).hexdigest())')"
16-
- uses: actions/cache@v1
17-
with:
18-
path: ~/.cache/pre-commit
19-
key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }}
20-
- uses: pre-commit/[email protected]
12+
- uses: actions/checkout@v2
13+
- uses: actions/setup-python@v2
14+
- uses: pre-commit/[email protected]

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,6 @@ repos:
5252
- id: pyupgrade
5353
args: [--py36-plus]
5454
- repo: https://github.com/pre-commit/mirrors-mypy
55-
rev: v0.770
55+
rev: v0.800
5656
hooks:
5757
- id: mypy

0 commit comments

Comments
 (0)