Skip to content

Commit 1a19e19

Browse files
Felix ExnerRobertWilbrandt
authored andcommitted
Update versions of style checkers
clang-format-10 isn't available on newer distros, same goes for pep257.
1 parent 71cec31 commit 1a19e19

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

.github/workflows/ci-format.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ on:
1313
jobs:
1414
pre-commit:
1515
name: Format
16-
runs-on: ubuntu-latest
16+
runs-on: ubuntu-22.04
1717
steps:
1818
- uses: actions/checkout@v2
1919
- uses: actions/setup-python@v2
2020
with:
21-
python-version: 3.9.7
21+
python-version: 3.10.4
2222
- name: Install system hooks
23-
run: sudo apt-get install clang-format-10 cppcheck
23+
run: sudo apt-get install clang-format-14 cppcheck
2424
- uses: pre-commit/[email protected]
2525
with:
2626
extra_args: --all-files --hook-stage manual

.pre-commit-config.yaml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,10 @@ repos:
4444
- id: black
4545
args: ["--line-length=100"]
4646

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

5453
- repo: https://github.com/pycqa/flake8
@@ -71,7 +70,7 @@ repos:
7170
name: ament_cppcheck
7271
description: Static code analysis of C/C++ files.
7372
stages: [commit]
74-
entry: ament_cppcheck
73+
entry: env AMENT_CPPCHECK_ALLOW_SLOW_VERSIONS=1 ament_cppcheck
7574
language: system
7675
files: \.(h\+\+|h|hh|hxx|hpp|cuh|c|cc|cpp|cu|c\+\+|cxx|tpp|txx)$
7776

@@ -92,7 +91,7 @@ repos:
9291
- id: clang-format
9392
name: clang-format
9493
description: Format files with ClangFormat.
95-
entry: clang-format-10
94+
entry: clang-format-14
9695
language: system
9796
files: \.(c|cc|cxx|cpp|frag|glsl|h|hpp|hxx|ih|ispc|ipp|java|js|m|proto|vert)$
9897
args: ['-fallback-style=none', '-i']

0 commit comments

Comments
 (0)