mirror of
https://github.com/cp2k/cp2k.git
synced 2026-07-29 06:35:28 -04:00
precommit: Enable shellcheck for all .sh files
This commit is contained in:
parent
a9dabe7810
commit
019b66ef5e
2 changed files with 1 additions and 26 deletions
|
|
@ -27,31 +27,6 @@ repos:
|
|||
rev: v0.7.1.1
|
||||
hooks:
|
||||
- id: shellcheck
|
||||
exclude: >-
|
||||
(?x)^(
|
||||
benchmarks/QS_single_node/do_benchmark|
|
||||
tools/autotools/autogen.sh|
|
||||
tools/autotune_grid/(generate_makefile|get_results).sh|
|
||||
tools/build_utils/get_revision_number|
|
||||
tools/conventions/test_conventions.sh|
|
||||
tools/doxify/(generate_doxygen.sh|doxify.sh)|
|
||||
tools/formatting/test_formatting.sh|
|
||||
tools/hfx_tools/(contraction/create|block_contraction/generate_hfx_contract_block)|
|
||||
tools/toolchain/(
|
||||
install_cp2k_toolchain.sh|
|
||||
scripts/(common_vars|get_openblas_arch|setup_buildtools|signal_trap|tool_kit|generate_arch_files).sh|
|
||||
scripts/install_(
|
||||
acml|sirius|libsmm|libxc|mkl|cmake|openmpi|spfft|hdf5|intelmpi|
|
||||
mathlibs|mpich|pexsi|ptscotch|superlu|cosma|quip|reflapack|
|
||||
libxsmm|libint|elpa|fftw|libvdwxc|openblas|plumed|valgrind|gcc|
|
||||
gsl|spglib|scalapack
|
||||
).sh
|
||||
)|
|
||||
tools/manual/(update_manual|xml2htm)|
|
||||
tools/plan_mpi_omp/plan.sh|
|
||||
tools/precommit/deploy.sh|
|
||||
tools/regtesting/do_regtest|
|
||||
)$
|
||||
- repo: local
|
||||
hooks:
|
||||
- id: doxify
|
||||
|
|
|
|||
|
|
@ -190,7 +190,7 @@ def process_file(fn, allow_modifications):
|
|||
|
||||
elif re.match(r".*\.sh$", fn):
|
||||
run_remote_tool("shfmt", fn)
|
||||
# run_remote_tool("shellcheck", fn)
|
||||
run_remote_tool("shellcheck", fn)
|
||||
|
||||
elif re.match(r".*\.md$", fn):
|
||||
run_remote_tool("markdownlint", fn)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue