File tree Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -139,12 +139,6 @@ if [[ $TASK == "check-docs" ]] || [[ $TASK == "check-links" ]]; then
139
139
linkchecker --config=./docs/.linkcheckerrc ./docs/_build/html/* .html || exit 1
140
140
exit 0
141
141
fi
142
- # check the consistency of parameters' descriptions and other stuff
143
- cp ./docs/Parameters.rst ./docs/Parameters-backup.rst
144
- cp ./src/io/config_auto.cpp ./src/io/config_auto-backup.cpp
145
- python ./.ci/parameter-generator.py || exit 1
146
- diff ./docs/Parameters-backup.rst ./docs/Parameters.rst || exit 1
147
- diff ./src/io/config_auto-backup.cpp ./src/io/config_auto.cpp || exit 1
148
142
exit 0
149
143
fi
150
144
Original file line number Diff line number Diff line change @@ -27,6 +27,15 @@ repos:
27
27
hooks :
28
28
- id : yamllint
29
29
args : ["--strict"]
30
+ - repo : local
31
+ hooks :
32
+ - id : regenerate-parameters
33
+ name : regenerate-parameters
34
+ entry : python
35
+ args :
36
+ - ./.ci/parameter-generator.py
37
+ language : python
38
+ pass_filenames : false
30
39
- repo : https://github.com/rstcheck/rstcheck
31
40
rev : v6.2.5
32
41
hooks :
You can’t perform that action at this time.
0 commit comments