forked from httplib2/httplib2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
40 lines (37 loc) · 1.19 KB
/
.pre-commit-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: check-added-large-files
- id: check-ast
- id: check-executables-have-shebangs
- id: check-merge-conflict
- id: check-shebang-scripts-are-executable
- id: check-toml
- id: check-yaml
# - id: end-of-file-fixer
# - id: trailing-whitespace
# TODO enable after py2/3 merge and initial black/isort run
# - repo: https://github.com/asottile/pyupgrade
# rev: v3.1.0
# hooks:
# - id: pyupgrade
- repo: local
hooks:
- id: pre-commit-validate-config
name: validate pre-commit config
files: "^.pre-commit-config.yaml$"
types: [yaml]
entry: pre-commit validate-config
language: system
fail_fast: true
- id: test
name: run code style and unit tests
types_or: [text, python, shell, toml, yaml]
exclude: "^(build|dist|doc|python2|ref|venv[^/]*?)/"
entry: script/test -sv
language: system
pass_filenames: false
require_serial: true