Skip to content

Commit 1c5a149

Browse files
authored
Merge pull request #597 from david-cermak/fix/pre_commit_hook_astyle
fix(common): Fix pre-commit hook to use released astyle_py
2 parents b2272b4 + 8d0152f commit 1c5a149

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/pre_commit_check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- name: Set up Python environment
2727
uses: actions/setup-python@master
2828
with:
29-
python-version: v3.7
29+
python-version: v3.8
3030
- name: Install python packages
3131
run: |
3232
pip install pre-commit

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ repos:
4848
- id: check-copyright
4949
args: ['--ignore', 'ci/check_copyright_ignore.txt', '--config', 'ci/check_copyright_config.yaml']
5050
- repo: https://github.com/igrr/astyle_py.git
51-
rev: c0013808882a15a0c0c2c1a9b5c903866c53a653
51+
rev: v1.0.5
5252
hooks:
5353
- id: astyle_py
5454
args: ['--style=otbs', '--attach-namespaces', '--attach-classes', '--indent=spaces=4', '--convert-tabs', '--align-pointer=name', '--align-reference=name', '--keep-one-line-statements', '--pad-header', '--pad-oper', '--exclude-list=ci/ignore_astyle.txt']

0 commit comments

Comments
 (0)