1
0
mirror of https://github.com/home-assistant/core.git synced 2026-04-20 08:48:59 +01:00

Move version metadata key to setup.cfg (#65091)

* Move version to setup.cfg
* Move python_requires to setup.cfg
* Add script to validate project metadata
* Add dedicated pre-commit hook
This commit is contained in:
Marc Mueller
2022-01-28 13:36:20 +01:00
committed by GitHub
parent a9cc35d6b6
commit 75f39f9ca2
6 changed files with 55 additions and 5 deletions

View File

@@ -115,3 +115,10 @@ repos:
language: script
types: [text]
files: ^(homeassistant/.+/(manifest|strings)\.json|\.coveragerc|\.strict-typing|homeassistant/.+/services\.yaml|script/hassfest/.+\.py)$
- id: hassfest-metadata
name: hassfest-metadata
entry: script/run-in-env.sh python3 -m script.hassfest -p metadata
pass_filenames: false
language: script
types: [text]
files: ^(script/hassfest/.+\.py|homeassistant/const\.py$|setup\.cfg)$