Skip to content

Commit 8bdc3d0

Browse files
committed
Test lite version
1 parent 083af1e commit 8bdc3d0

File tree

2 files changed

+25
-3
lines changed

2 files changed

+25
-3
lines changed

Diff for: .github/workflows/precommit.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Pre-commit check
2+
3+
on:
4+
pull_request:
5+
jobs:
6+
lint:
7+
name: Check if any auto-fixes are needed
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v3
11+
with:
12+
fetch-depth: 0
13+
- uses: actions/setup-python@v4
14+
with:
15+
python-version: 3.x
16+
- id: changed-files
17+
uses: tj-actions/changed-files@v36
18+
- uses: pre-commit/[email protected]
19+
with:
20+
extra_args: --files ${{ steps.changed-files.outputs.all_changed_files }}
21+
- uses: pre-commit-ci/[email protected]
22+
if: always()

Diff for: .pre-commit-config.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ repos:
1212
args: [--fix=lf]
1313
- id: trailing-whitespace
1414
args: [--markdown-linebreak-ext=md]
15-
- repo: https://github.com/jlebar/pre-commit-hooks
16-
rev: 'master'
15+
- repo: https://github.com/pre-commit/mirrors-clang-format
16+
rev: 'v15.0.7'
1717
hooks:
18-
- id: clang-format-diff-15.0.0
18+
- id: clang-format
1919
files: \.((((c|C)(c|pp|xx|\+\+)?$)|((h|H)h?(pp|xx|\+\+)?$))|(ino))$

0 commit comments

Comments
 (0)