File tree Expand file tree Collapse file tree 3 files changed +52
-17
lines changed Expand file tree Collapse file tree 3 files changed +52
-17
lines changed Original file line number Diff line number Diff line change @@ -21,15 +21,14 @@ jobs:
21
21
CC : icx
22
22
steps :
23
23
- uses : actions/checkout@v4
24
- - name : Apt installs
25
- run : |
26
- sudo apt update
27
- sudo apt install -y clang-format clang-tidy uncrustify cppcheck iwyu
28
- - uses : actions/setup-python@v4
24
+ - name : Python setup
25
+ uses : actions/setup-python@v4
29
26
with :
30
27
python-version : ' 3.10'
31
28
cache : ' pip'
32
- - run : pip install pre-commit
33
- - run : pre-commit run --all-files
29
+ - run : pip install -r requirements.txt
34
30
- name : Build & Run
35
31
run : srun -p pvc-shared -w idc-beta-batch-pvc-node-12 scripts/daily.sh
32
+ - name : Run pre-commit
33
+ uses :
pre-commit/[email protected]
34
+
Original file line number Diff line number Diff line change 1
- fail_fast : false
1
+ # SPDX-FileCopyrightText: Intel Corporation
2
+ #
3
+ # SPDX-License-Identifier: BSD-3-Clause
4
+
5
+ # See https://pre-commit.com for more information
6
+ # See https://pre-commit.com/hooks.html for more hooks
2
7
repos :
3
- - repo : https://github.com/pocc/pre-commit-hooks
4
- rev : master
5
- hooks :
6
- - id : clang-format
7
- args : [--style=Google]
8
- - id : clang-tidy
9
- - id : uncrustify
10
- - id : cppcheck
11
- - id : include-what-you-use
8
+
9
+ - repo : https://github.com/pre-commit/mirrors-clang-format
10
+ rev : v16.0.6
11
+ hooks :
12
+ - id : clang-format
13
+
14
+ - repo : https://github.com/pre-commit/pre-commit-hooks
15
+ rev : v4.4.0
16
+ hooks :
17
+ - id : trailing-whitespace
18
+ - id : end-of-file-fixer
19
+ - id : mixed-line-ending
20
+ - id : check-xml
21
+ - id : check-yaml
22
+ - id : check-case-conflict
23
+ - id : check-toml
24
+ - id : check-json
25
+ - id : check-added-large-files
26
+ args : ['--maxkb=800']
27
+
28
+
29
+ - repo : https://github.com/pycqa/isort
30
+ rev : 5.12.0
31
+ hooks :
32
+ - id : isort
33
+
34
+ - repo : https://github.com/fsfe/reuse-tool
35
+ rev : v2.1.0
36
+ hooks :
37
+ - id : reuse
38
+
39
+ - repo : https://github.com/cheshirekow/cmake-format-precommit
40
+ rev : v0.6.13
41
+ hooks :
42
+ - id : cmake-format
Original file line number Diff line number Diff line change
1
+ # SPDX-FileCopyrightText: Intel Corporation
2
+ #
3
+ # SPDX-License-Identifier: BSD-3-Clause
4
+
5
+ pre-commit == 3.4.0
You can’t perform that action at this time.
0 commit comments