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
139139 linkchecker --config=./docs/.linkcheckerrc ./docs/_build/html/* .html || exit 1
140140 exit 0
141141 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
148142 exit 0
149143fi
150144
Original file line number Diff line number Diff line change @@ -27,6 +27,15 @@ repos:
2727 hooks :
2828 - id : yamllint
2929 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
3039 - repo : https://github.com/rstcheck/rstcheck
3140 rev : v6.2.5
3241 hooks :
You can’t perform that action at this time.
0 commit comments