File tree 2 files changed +36
-3
lines changed
2 files changed +36
-3
lines changed Original file line number Diff line number Diff line change
1
+ name : " Update pre-commit config"
2
+
3
+ on :
4
+ schedule :
5
+ - cron : " 0 7 * * 1" # At 07:00 on each Monday.
6
+ workflow_dispatch :
7
+
8
+ jobs :
9
+ update-pre-commit :
10
+ if : github.repository_owner == 'pandas-dev'
11
+ name : Autoupdate pre-commit config
12
+ runs-on : ubuntu-latest
13
+ steps :
14
+ - name : Set up Python
15
+ uses : actions/setup-python@v2
16
+ - name : Cache multiple paths
17
+ uses : actions/cache@v2
18
+ with :
19
+ path : |
20
+ ~/.cache/pre-commit
21
+ ~/.cache/pip
22
+ key : pre-commit-autoupdate-${{ runner.os }}-build
23
+ - name : Update pre-commit config packages
24
+ uses : technote-space/create-pr-action@v2
25
+ with :
26
+ GITHUB_TOKEN : ${{ secrets.ACTION_TRIGGER_TOKEN }}
27
+ EXECUTE_COMMANDS : |
28
+ pip install pre-commit
29
+ pre-commit autoupdate || (exit 0);
30
+ pre-commit run -a || (exit 0);
31
+ COMMIT_MESSAGE : " ⬆️ UPGRADE: Autoupdate pre-commit config"
32
+ PR_BRANCH_NAME : " pre-commit-config-update-${PR_ID}"
33
+ PR_TITLE : " ⬆️ UPGRADE: Autoupdate pre-commit config"
Original file line number Diff line number Diff line change @@ -18,15 +18,15 @@ repos:
18
18
types : [text]
19
19
args : [--append-config=flake8/cython-template.cfg]
20
20
- repo : https://github.com/PyCQA/isort
21
- rev : 5.6.3
21
+ rev : 5.6.4
22
22
hooks :
23
23
- id : isort
24
24
name : isort (python)
25
25
- id : isort
26
26
name : isort (cython)
27
27
types : [cython]
28
28
- repo : https://github.com/asottile/pyupgrade
29
- rev : v2.7.2
29
+ rev : v2.7.3
30
30
hooks :
31
31
- id : pyupgrade
32
32
args : [--py37-plus]
@@ -124,7 +124,7 @@ repos:
124
124
hooks :
125
125
- id : yesqa
126
126
- repo : https://github.com/pre-commit/pre-commit-hooks
127
- rev : v3.2 .0
127
+ rev : v3.3 .0
128
128
hooks :
129
129
- id : end-of-file-fixer
130
130
exclude : ^LICENSES/|\.(html|csv|txt|svg|py)$
You can’t perform that action at this time.
0 commit comments