Skip to content

Commit 0a6919f

Browse files
committed
pre-commit: update pyflakes for type comments
Ref: PyCQA/pyflakes#455 (cherry picked from commit 2393b58)
1 parent dcb94d8 commit 0a6919f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.pre-commit-config.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,12 @@ repos:
2525
hooks:
2626
- id: flake8
2727
language_version: python3
28-
additional_dependencies: [flake8-typing-imports==1.3.0]
28+
additional_dependencies: [
29+
flake8-typing-imports==1.3.0,
30+
# To handle PEP 484 type comments with following text.
31+
# (https://github.com/PyCQA/pyflakes/pull/455)
32+
'git+https://github.com/PyCQA/pyflakes.git@1911c20#egg=pyflakes',
33+
]
2934
- repo: https://github.com/asottile/reorder_python_imports
3035
rev: v1.4.0
3136
hooks:

0 commit comments

Comments
 (0)