Skip to content

Commit

Permalink
(fix): Use venv created by pre-commit for validate config (#3166)
Browse files Browse the repository at this point in the history
* Create venv for pre-commit validate config

* Add files to run on

* Fix files glob to regex
  • Loading branch information
enochtangg committed Sep 23, 2022
1 parent d71e8ea commit d698196
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,10 @@ repos:
hooks:
- id: validate-configs-syntax
name: validate-configs-syntax
entry: python3 ./snuba/validate_configs.py
language: system
entry: python3 -m snuba.validate_configs
language: python
additional_dependencies: [ 'jsonschema', 'pyyaml' ]
pass_filenames: false
files: 'snuba/datasets/configuration/.*'
default_language_version:
python: python3.8

0 comments on commit d698196

Please sign in to comment.