Skip to content

Commit

Permalink
Add precommit check for METADATA files
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 6a39034 commit 1c5b74e
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 1c5b74e

Please sign in to comment.