mirror of
https://github.com/espressif/esp-protocols.git
synced 2025-07-31 11:17:30 +02:00
fix(common): Fix pre-commit hook to use released astyle_py
The previous version (c00138088) required pyyaml 3.0.0 which is broken on certain plafroms (e.g. Fedora 39) Closes https://github.com/espressif/esp-protocols/issues/592
This commit is contained in:
2
.github/workflows/pre_commit_check.yml
vendored
2
.github/workflows/pre_commit_check.yml
vendored
@ -26,7 +26,7 @@ jobs:
|
|||||||
- name: Set up Python environment
|
- name: Set up Python environment
|
||||||
uses: actions/setup-python@master
|
uses: actions/setup-python@master
|
||||||
with:
|
with:
|
||||||
python-version: v3.7
|
python-version: v3.8
|
||||||
- name: Install python packages
|
- name: Install python packages
|
||||||
run: |
|
run: |
|
||||||
pip install pre-commit
|
pip install pre-commit
|
||||||
|
@ -48,7 +48,7 @@ repos:
|
|||||||
- id: check-copyright
|
- id: check-copyright
|
||||||
args: ['--ignore', 'ci/check_copyright_ignore.txt', '--config', 'ci/check_copyright_config.yaml']
|
args: ['--ignore', 'ci/check_copyright_ignore.txt', '--config', 'ci/check_copyright_config.yaml']
|
||||||
- repo: https://github.com/igrr/astyle_py.git
|
- repo: https://github.com/igrr/astyle_py.git
|
||||||
rev: c0013808882a15a0c0c2c1a9b5c903866c53a653
|
rev: v1.0.5
|
||||||
hooks:
|
hooks:
|
||||||
- id: astyle_py
|
- id: astyle_py
|
||||||
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']
|
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']
|
||||||
|
Reference in New Issue
Block a user