Skip to content

Commit

Permalink
Precommit metadata checks (#2148)
Browse files Browse the repository at this point in the history
This check always runs for all modified files, and delegates
further filtering to the invoked script.
pre-commit exclude: filtering cannot be used here currently,
as it does not support multiple filters or overriding globals.

b/150775273
  • Loading branch information
kaidokert committed Jan 2, 2024
1 parent 5c38ba0 commit 7ae5706
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -204,3 +204,11 @@ repos:
entry: gn format
language: system
files: '.*\.gni?$'
- id: meta-validate
name: Validate METADATA files
entry: python tools/metadata/validate.py
language: python
additional_dependencies:
- "protobuf"
always_run: true
pass_filenames: true

0 comments on commit 7ae5706

Please sign in to comment.