diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 62f634ebc56f..1c153ca82532 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -46,6 +46,7 @@ repos: rev: v2.4.0 hooks: - id: check-executables-have-shebangs + stages: [manual] - id: check-json - id: no-commit-to-branch args: @@ -57,9 +58,10 @@ repos: hooks: - id: yamllint - repo: https://github.com/prettier/prettier - rev: 2.0.2 + rev: 2.0.4 hooks: - id: prettier + stages: [manual] - repo: local hooks: # Run mypy through our wrapper script in order to get the possible diff --git a/azure-pipelines-ci.yml b/azure-pipelines-ci.yml index 38b7a3c32177..84740a32c625 100644 --- a/azure-pipelines-ci.yml +++ b/azure-pipelines-ci.yml @@ -46,7 +46,7 @@ stages: pre-commit install-hooks - script: | . venv/bin/activate - pre-commit run check-executables-have-shebangs --all-files + pre-commit run --hook-stage manual check-executables-have-shebangs --all-files displayName: 'Run executables check' - script: | . venv/bin/activate