generated from bazel-contrib/rules-template
-
-
Notifications
You must be signed in to change notification settings - Fork 75
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
70 lines (61 loc) · 2.37 KB
/
.pre-commit-config.yaml
File metadata and controls
70 lines (61 loc) · 2.37 KB
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 CONTRIBUTING.md for instructions.
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
# Check formatting and lint for starlark code
- repo: https://github.com/keith/pre-commit-buildifier
rev: 7.3.1.1
hooks:
- id: buildifier
- id: buildifier-lint
# Enforce that commit messages allow for later changelog generation
- repo: https://github.com/commitizen-tools/commitizen
rev: v4.1.0
hooks:
# Requires that commitizen is already installed
- id: commitizen
- repo: https://github.com/pre-commit/mirrors-prettier
rev: "v3.1.0"
hooks:
- id: prettier
- repo: https://github.com/crate-ci/typos
rev: v1.28.4
hooks:
- id: typos
exclude: |
(?x)^(
examples/django/mysite/settings.py|
gazelle_python.yaml
)
- repo: local
hooks:
- id: check-requirements-lock
name: Update requirements lock
# Note that we use a nested shell to discard $@, which is the file list
entry: /bin/sh -c '/usr/bin/env bazel run //:requirements.update'
language: script
require_serial: true
# - id: check-gazelle-manifest
# name: Update gazelle manifest
# # Note that we use a nested shell to discard $@, which is the file list
# entry: /bin/sh -c '/usr/bin/env bazel run //:gazelle_python_manifest.update'
# language: script
# require_serial: true
- id: check-amd64-image-lists
name: Update amd64 image lists
# Note that we use a nested shell to discard $@, which is the file list
entry: /bin/sh -c '/usr/bin/env bazel run //py/tests/py_venv_image_layer:my_app_amd64_layers'
language: script
require_serial: true
- id: check-arm64-image-lists
name: Update arm64 image lists
# Note that we use a nested shell to discard $@, which is the file list
entry: /bin/sh -c '/usr/bin/env bazel run //py/tests/py_venv_image_layer:my_app_arm64_layers'
language: script
require_serial: true
- id: check-image-lists
name: Update image lists
# Note that we use a nested shell to discard $@, which is the file list
entry: /bin/sh -c '/usr/bin/env bazel run //py/tests/py_image_layer:my_app_layers_test'
language: script
require_serial: true