-
Notifications
You must be signed in to change notification settings - Fork 130
/
Copy path.pre-commit-config.yaml
78 lines (78 loc) · 2.16 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
71
72
73
74
75
76
77
78
---
# Run the project code formatters.
#
# Follow the instructions for "Building from Source" in INSTALL.md to install
# the required dependencies.
#
# Usage
# -----
#
# Run the pre-commit hooks on all files using:
#
# $ pre-commit run --all-files
#
# The pre-commit git hook is installed using:
#
# $ make init
#
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.4.0
hooks:
- id: check-added-large-files
args: [--maxkb=10000]
- id: check-case-conflict
- id: check-docstring-first
- id: check-executables-have-shebangs
- id: check-json
- id: check-merge-conflict
- id: check-symlinks
- id: end-of-file-fixer
- id: pretty-format-json
args: [--autofix, --indent=2, --no-sort-keys]
- id: requirements-txt-fixer
- id: trailing-whitespace
- repo: https://github.com/jumanjihouse/pre-commit-hook-yamlfmt
rev: 750078a4aedba5d63c04442e697ccda3ddf71351
hooks:
- id: yamlfmt
- repo: https://github.com/timothycrosley/isort
rev: 5.12.0
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: 22.3.0
hooks:
- id: black
language_version: python3
- repo: https://github.com/PyCQA/flake8
rev: 6.0.0
hooks:
- id: flake8
- repo: https://github.com/kynan/nbstripout
rev: 0.3.9
hooks:
- id: nbstripout
files: .ipynb
- repo: https://github.com/pocc/pre-commit-hooks
rev: v1.1.1
hooks:
- id: clang-format
args: [-i]
- repo: https://github.com/nametake/pre-commit-prototool
rev: v0.1.0
hooks:
- id: prototool-lint
- id: prototool-format-fix
- repo: https://github.com/FelixSeptem/pre-commit-golang
rev: 12f5442f51377b10b26651ad745206bbe1500ad6
hooks:
- id: bazel-buildifier
- repo: https://github.com/petalmd/dockerfile-pre-commit
rev: v1.0
hooks:
- id: dockerlint
- repo: https://github.com/BlankSpruce/gersemi
rev: 0.7.5
hooks:
- id: gersemi