Skip to content

Commit

Permalink
Add python-typing-update to pre-commit-config (home-assistant#48088)
Browse files Browse the repository at this point in the history
  • Loading branch information
cdce8p authored Mar 18, 2021
1 parent 4cb7718 commit 314a551
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions requirements_test_pre_commit.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 314a551

Please sign in to comment.