-
Notifications
You must be signed in to change notification settings - Fork 8
/
.pre-commit-config.yaml
70 lines (63 loc) · 1.63 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# See https://pre-commit.com/ for usage and config
repos:
- repo: local
hooks:
- id: black
name: black
stages: [commit]
language: system
entry: black
require_serial: true
types: [python]
- id: blacken-docs
name: blacken-docs
stages: [commit]
language: system
# note that this doesn't access pyproject.toml
# black settings by default, so defaults to a line
# length of 88, rather than 100.
# This is actually good for us, since a line length
# of 100 would introduce horizontal scroll bars
# in code blocks in the docs.
entry: blacken-docs -t py38
types_or: [python, rst, markdown]
- id: flake8
name: flake8
stages: [commit]
language: system
entry: flake8
types: [python]
- id: mypy
name: mypy
stages: [commit]
language: system
entry: mypy
types: [python]
types_or: [python, pyi]
require_serial: true
minimum_pre_commit_version: '2.9.2'
- repo: https://github.com/PyCQA/docformatter
rev: v1.7.5
hooks:
- id: docformatter
additional_dependencies: [tomli]
- repo: https://github.com/jshwi/docsig
rev: v0.43.0
hooks:
- id: docsig
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.1.0
hooks:
- id: trailing-whitespace
- id: check-yaml
exclude: "^kubernetes/ray/templates/.*\\.yaml$"
- id: end-of-file-fixer
exclude: "\\.png$|\
\\.bin$|\
\\.parquet$|\
\\.inv$|\
^kazu/tests/test_assets/tinybern"
# this isn't *really* a python file
# but vulture wants it to seem that way
# also exclude everything in resources/
exclude: '.vulture_whitelist.py|resources/.*'