forked from batfish/batfish
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
30 lines (30 loc) · 987 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
29
30
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: local
hooks:
- id: java-format
name: java-format
entry: ./tools/fix_java_format.sh --diff
language: script
files: '\.java$'
pass_filenames: false # this is a global check, only run it once
- id: buildifier
name: buildifier
entry: bazel --noblock_for_lock run //:buildifier.fix
language: system
require_serial: true
pass_filenames: false # this is a global check, only run it once
- repo: https://github.com/psf/black
rev: 22.3.0
hooks:
- id: black
- repo: https://github.com/pre-commit/mirrors-isort
rev: v4.3.21
hooks:
- id: isort
- repo: https://github.com/humitos/mirrors-autoflake.git
rev: v1.3
hooks:
- id: autoflake
args: ["--in-place", "--remove-all-unused-imports", "--remove-unused-variables"]