mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Add python-typing-update to pre-commit-config (#48088)
This commit is contained in:
parent
4cb7718192
commit
314a5518f1
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user