Pre-commit changes to Prettier and executables check (#33749)

This commit is contained in:
Franck Nijhof 2020-04-06 19:53:39 +02:00 committed by GitHub
parent 0d2de919a6
commit 34ecc803b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -46,6 +46,7 @@ repos:
rev: v2.4.0 rev: v2.4.0
hooks: hooks:
- id: check-executables-have-shebangs - id: check-executables-have-shebangs
stages: [manual]
- id: check-json - id: check-json
- id: no-commit-to-branch - id: no-commit-to-branch
args: args:
@ -57,9 +58,10 @@ repos:
hooks: hooks:
- id: yamllint - id: yamllint
- repo: https://github.com/prettier/prettier - repo: https://github.com/prettier/prettier
rev: 2.0.2 rev: 2.0.4
hooks: hooks:
- id: prettier - id: prettier
stages: [manual]
- repo: local - repo: local
hooks: hooks:
# Run mypy through our wrapper script in order to get the possible # Run mypy through our wrapper script in order to get the possible

View File

@ -46,7 +46,7 @@ stages:
pre-commit install-hooks pre-commit install-hooks
- script: | - script: |
. venv/bin/activate . 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' displayName: 'Run executables check'
- script: | - script: |
. venv/bin/activate . venv/bin/activate