Skip to content

Commit be63d55

Browse files
Felix Exnerfmauch
authored andcommitted
Update pre-commit workflows to current versions
1 parent 07b51cf commit be63d55

File tree

2 files changed

+19
-24
lines changed

2 files changed

+19
-24
lines changed

.github/workflows/ci-format.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ on:
1313
jobs:
1414
pre-commit:
1515
name: Format
16-
runs-on: ubuntu-latest
16+
runs-on: ubuntu-22.04
1717
steps:
18-
- uses: actions/checkout@v2
19-
- uses: actions/setup-python@v2
20-
with:
21-
python-version: 3.9.7
22-
- uses: pre-commit/action@v2.0.3
23-
with:
24-
extra_args: --all-files --hook-stage manual
18+
- uses: actions/checkout@v3
19+
- uses: actions/setup-python@v4
20+
with:
21+
python-version: '3.10'
22+
- uses: pre-commit/action@v3.0.0
23+
with:
24+
extra_args: --all-files --hook-stage manual

.pre-commit-config.yaml

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
# To use:
23
#
34
# pre-commit run -a
@@ -15,7 +16,7 @@
1516
repos:
1617
# Standard hooks
1718
- repo: https://github.com/pre-commit/pre-commit-hooks
18-
rev: v3.4.0
19+
rev: v4.4.0
1920
hooks:
2021
- id: check-added-large-files
2122
- id: check-ast
@@ -33,29 +34,23 @@ repos:
3334

3435
# Python hooks
3536
- repo: https://github.com/asottile/pyupgrade
36-
rev: v2.7.2
37+
rev: v3.3.1
3738
hooks:
38-
- id: pyupgrade
39+
- id: pyupgrade
3940
args: [--py36-plus]
4041

4142
- repo: https://github.com/psf/black
42-
rev: 22.3.0
43+
rev: 23.3.0
4344
hooks:
4445
- id: black
4546
args: ["--line-length=100"]
4647

47-
# PEP 257
48-
- repo: https://github.com/FalconSocial/pre-commit-mirrors-pep257
49-
rev: v0.3.3
50-
hooks:
51-
- id: pep257
52-
args: ["--ignore=D100,D101,D102,D103,D104,D105,D106,D107,D203,D212,D404"]
5348

5449
- repo: https://github.com/pycqa/flake8
55-
rev: 3.9.0
50+
rev: 6.0.0
5651
hooks:
57-
- id: flake8
58-
args: ["--ignore=E501"]
52+
- id: flake8
53+
args: ["--ignore=E501"]
5954

6055
# CPP hooks
6156
# The same options as in ament_cppcheck are used, but its not working...
@@ -89,13 +84,13 @@ repos:
8984

9085
# Docs - RestructuredText hooks
9186
- repo: https://github.com/PyCQA/doc8
92-
rev: 0.9.0a1
87+
rev: v1.1.1
9388
hooks:
9489
- id: doc8
9590
args: ['--max-line-length=100', '--ignore=D001']
9691

9792
- repo: https://github.com/pre-commit/pygrep-hooks
98-
rev: v1.8.0
93+
rev: v1.10.0
9994
hooks:
10095
- id: rst-backticks
10196
- id: rst-directive-colons
@@ -104,7 +99,7 @@ repos:
10499
# Spellcheck in comments and docs
105100
# skipping of *.svg files is not working...
106101
- repo: https://github.com/codespell-project/codespell
107-
rev: v2.0.0
102+
rev: v2.2.4
108103
hooks:
109104
- id: codespell
110105
args: ['--write-changes']

0 commit comments

Comments
 (0)