Skip to content

Commit 5dae011

Browse files
authored
tweak: Automate docs updates (#557)
Add doc updates to pre-commit --- ### Changes are visible to end-users: yes/no <!-- If no, please delete this section. --> - Searched for relevant documentation and updated as needed: yes/no - Breaking change (forces users to change their own code or config): yes/no - Suggested release notes appear below: yes/no ### Test plan <!-- Delete any which do not apply --> - Covered by existing test cases - New test cases added - Manual testing; please provide instructions so we can reproduce:
1 parent 7c4060f commit 5dae011

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.pre-commit-config.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,20 @@ repos:
1313
hooks:
1414
- id: buildifier
1515
- id: buildifier-lint
16+
1617
# Enforce that commit messages allow for later changelog generation
1718
- repo: https://github.com/commitizen-tools/commitizen
1819
rev: v4.1.0
1920
hooks:
2021
# Requires that commitizen is already installed
2122
- id: commitizen
2223
stages: [commit-msg]
24+
2325
- repo: https://github.com/pre-commit/mirrors-prettier
2426
rev: "v3.1.0"
2527
hooks:
2628
- id: prettier
29+
2730
- repo: https://github.com/crate-ci/typos
2831
rev: v1.28.4
2932
hooks:
@@ -33,3 +36,11 @@ repos:
3336
examples/django/mysite/settings.py|
3437
gazelle_python.yaml
3538
)
39+
40+
- repo: local
41+
hooks:
42+
- id: check-docs
43+
name: Update docs
44+
entry: /usr/bin/env bazel run //docs:update
45+
language: script
46+
files: \.bzl$

0 commit comments

Comments
 (0)