File tree 6 files changed +50
-76
lines changed
6 files changed +50
-76
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ name : Check style
2
+ on :
3
+ push :
4
+ branches :
5
+ - master
6
+ - develop
7
+ pull_request :
8
+ branches :
9
+ - master
10
+ - develop
11
+ jobs :
12
+ check_style :
13
+ runs-on : ubuntu-latest
14
+ steps :
15
+ - name : Checkout preCICE
16
+ uses : actions/checkout@v4
17
+ - name : Setup python
18
+ uses : actions/setup-python@v5
19
+ with :
20
+ python-version : ' 3.10'
21
+ check-latest : true
22
+ - name : Install pre-commit
23
+ run : pip install pre-commit
24
+ - name : Run checks
25
+ run : pre-commit run -a -v
26
+ - name : Git status
27
+ if : always()
28
+ run : git status
29
+ - name : Full diff
30
+ if : always()
31
+ run : git diff
Original file line number Diff line number Diff line change 8
8
rev : v0.30.0
9
9
hooks :
10
10
- id : markdownlint
11
- files : " ^(.*/)?README.md "
11
+ exclude : changelog-entries
12
12
- id : markdownlint-fix
13
- files : " ^(.*/)?README.md "
13
+ exclude : changelog-entries
14
14
- repo : https://github.com/hhatto/autopep8
15
15
rev : v2.0.4
16
16
hooks :
@@ -20,15 +20,25 @@ repos:
20
20
rev : ' v8.0.1'
21
21
hooks :
22
22
- id : clang-format
23
+ - repo : https://github.com/koalaman/shellcheck-precommit
24
+ rev : v0.10.0
25
+ hooks :
26
+ - id : shellcheck
27
+ args : [ --external-sources, --exclude=SC1091 ]
23
28
- repo : local
24
29
hooks :
25
30
- id : check-image-naming
26
31
name : check image names
27
32
language : python
28
33
entry : tools/check-image-names.py
29
34
files : " .*/images/.*"
30
- - repo : https://github.com/koalaman/shellcheck-precommit
31
- rev : v0.10.0
32
- hooks :
33
- - id : shellcheck
34
- args : [ --external-sources, --exclude=SC1091 ]
35
+ - id : check-size
36
+ name : check sizes
37
+ language : script
38
+ entry : tools/check-size.sh
39
+ pass_filenames : false
40
+ - id : check-names
41
+ name : check file names
42
+ language : script
43
+ entry : tools/check.sh
44
+ pass_filenames : false
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ tutorials=$(find . -maxdepth 1 -type d -not -name ".*" | grep -vE $IGNORE | sed
9
9
10
10
for tutorial in $tutorials ; do
11
11
# Check permalinks
12
- docs=$( find " ./$tutorial " -maxdepth 1 -type f -name " *.md" -print0 | xargs grep -l " permalink:" | sed " s/^.\///" )
12
+ docs=$( find " ./$tutorial " -maxdepth 1 -type f -name " *.md" -print0 | xargs -0 grep -l " permalink:" | sed " s/^.\///" )
13
13
for doc in $docs ; do
14
14
link=$( grep " permalink:" " $doc " | sed " s/permalink: \+//" )
15
15
prefix=" tutorials-$tutorial "
@@ -40,7 +40,7 @@ for tutorial in $tutorials; do
40
40
done
41
41
42
42
# Check quickstart
43
- docs=$( find ./quickstart -maxdepth 1 -type f -name " *.md" -print0 | xargs grep -l " permalink:" | sed " s/^.\///" )
43
+ docs=$( find ./quickstart -maxdepth 1 -type f -name " *.md" -print0 | xargs -0 grep -l " permalink:" | sed " s/^.\///" )
44
44
for doc in $docs ; do
45
45
link=$( grep " permalink:" " $doc " | sed " s/permalink: \+//" )
46
46
prefix=" quickstart"
You can’t perform that action at this time.
0 commit comments