forked from buildfarm/buildfarm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
28 lines (28 loc) · 951 Bytes
/
.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
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
exclude: patches/.*\.patch$
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.2.0
hooks:
- id: trailing-whitespace
- id: check-added-large-files
- id: check-merge-conflict
- id: mixed-line-ending
# Uses Google's java formatter.
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
rev: v2.3.0
hooks:
- id: pretty-format-kotlin
args: [--autofix]
- repo: local
hooks:
- id: buildifier
name: Buildifier
description: Tool for formatting bazel BUILD and .bzl files with a standard convention.
language: golang
additional_dependencies:
- github.com/bazelbuild/buildtools/[email protected]
files: (BUILD|WORKSPACE|.+\.bazel|.+\.bzl)$
entry: buildifier
args: ["--lint=fix"]