diff --git a/.ci/test.sh b/.ci/test.sh index 6b8f31135da9..d3cbe36e9908 100755 --- a/.ci/test.sh +++ b/.ci/test.sh @@ -139,12 +139,6 @@ if [[ $TASK == "check-docs" ]] || [[ $TASK == "check-links" ]]; then linkchecker --config=./docs/.linkcheckerrc ./docs/_build/html/*.html || exit 1 exit 0 fi - # check the consistency of parameters' descriptions and other stuff - cp ./docs/Parameters.rst ./docs/Parameters-backup.rst - cp ./src/io/config_auto.cpp ./src/io/config_auto-backup.cpp - python ./.ci/parameter-generator.py || exit 1 - diff ./docs/Parameters-backup.rst ./docs/Parameters.rst || exit 1 - diff ./src/io/config_auto-backup.cpp ./src/io/config_auto.cpp || exit 1 exit 0 fi diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6c8fc0f8335a..567aa92ecc72 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -27,6 +27,15 @@ repos: hooks: - id: yamllint args: ["--strict"] + - repo: local + hooks: + - id: regenerate-parameters + name: regenerate-parameters + entry: python + args: + - ./.ci/parameter-generator.py + language: python + pass_filenames: false - repo: https://github.com/rstcheck/rstcheck rev: v6.2.5 hooks: