Skip to content

Commit e0323e7

Browse files
Add flake8-typing-import to the pre-commit configuration
Relates to #1239
1 parent 326ada7 commit e0323e7

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.pre-commit-config.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ repos:
4646
rev: 4.0.1
4747
hooks:
4848
- id: flake8
49-
additional_dependencies: [flake8-bugbear]
50-
exclude: tests/testdata|doc/conf.py|astroid/__init__.py|setup.py
49+
additional_dependencies: [flake8-bugbear, flake8-typing-imports==1.11.0]
50+
exclude: tests/testdata|doc/conf.py|astroid/__init__.py
5151
- repo: local
5252
hooks:
5353
- id: pylint

requirements_test_pre_commit.txt

+1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ black==21.7b0
22
pylint==2.11.1
33
isort==5.9.2
44
flake8==4.0.1
5+
flake8-typing-imports==1.11.0
56
mypy==0.910

setup.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ install_requires =
4141
setuptools>=20.0
4242
typed-ast>=1.4.0,<2.0;implementation_name=="cpython" and python_version<"3.8"
4343
typing-extensions>=3.10;python_version<"3.10"
44-
python_requires = ~=3.6
44+
python_requires = >= 3.6.0
4545

4646
[options.packages.find]
4747
include =

0 commit comments

Comments
 (0)