Fix pre-commit hooks env for gen_requirements_all & hassfest (#33187)

* Run-in-env script.gen_requirements_all and hassfest in pre-commit

* Apply suggestions from code review and change `language` to script

Co-authored-by: Ville Skyttä <ville.skytta@iki.fi>
This commit is contained in:
Eugenio Panadero 2020-03-25 08:47:01 +01:00 committed by GitHub
parent 28c2f9caa9
commit 44425a184e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -61,15 +61,15 @@ repos:
files: ^homeassistant/.+\.py$
- id: gen_requirements_all
name: gen_requirements_all
entry: python3 -m script.gen_requirements_all
entry: script/run-in-env.sh python3 -m script.gen_requirements_all
pass_filenames: false
language: system
language: script
types: [json]
files: ^homeassistant/.+/manifest\.json$
- id: hassfest
name: hassfest
entry: python3 -m script.hassfest
entry: script/run-in-env.sh python3 -m script.hassfest
pass_filenames: false
language: system
language: script
types: [json]
files: ^homeassistant/.+/manifest\.json$