Set up a few more pre-commit hook (#7830)

This commit is contained in:
Maxime Beauchemin 2019-07-08 09:38:36 -07:00 committed by GitHub
parent 1ab04190cd
commit 16b6ccace9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 18 additions and 2 deletions

View File

@ -15,8 +15,24 @@
# limitations under the License.
#
repos:
- repo: https://github.com/ambv/black
- repo: https://github.com/ambv/black
rev: stable
hooks:
- id: black
- id: black
language_version: python3.6
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.2.3
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-docstring-first
- id: check-json
- id: check-added-large-files
- id: check-yaml
- id: debug-statements
- repo: https://gitlab.com/pycqa/flake8
rev: 3.7.1
hooks:
- id: flake8