Add python-typing-update to pre-commit-config (#48088)

This commit is contained in:
Marc Mueller 2021-03-18 23:20:25 +01:00 committed by GitHub
parent 4cb7718192
commit 314a5518f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 0 deletions

View File

@ -67,6 +67,19 @@ repos:
hooks:
- id: prettier
stages: [manual]
- repo: https://github.com/cdce8p/python-typing-update
rev: v0.3.0
hooks:
# Run `python-typing-update` hook manually from time to time
# to update python typing syntax.
# Will require manual work, before submitting changes!
- id: python-typing-update
stages: [manual]
args:
- --py38-plus
- --force
- --keep-updates
files: ^(homeassistant|tests|script)/.+\.py$
- repo: local
hooks:
# Run mypy through our wrapper script in order to get the possible

View File

@ -7,5 +7,6 @@ flake8-docstrings==1.5.0
flake8==3.8.4
isort==5.7.0
pydocstyle==5.1.1
python-typing-update==0.3.0
pyupgrade==2.7.2
yamllint==1.24.2