diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3474252f31..6c29a7420d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -46,8 +46,8 @@ repos: rev: 4.0.1 hooks: - id: flake8 - additional_dependencies: [flake8-bugbear] - exclude: tests/testdata|doc/conf.py|astroid/__init__.py|setup.py + additional_dependencies: [flake8-bugbear, flake8-typing-imports==1.11.0] + exclude: tests/testdata|doc/conf.py|astroid/__init__.py - repo: local hooks: - id: pylint diff --git a/requirements_test_pre_commit.txt b/requirements_test_pre_commit.txt index b5d9f27653..21b92f6258 100644 --- a/requirements_test_pre_commit.txt +++ b/requirements_test_pre_commit.txt @@ -2,4 +2,5 @@ black==21.7b0 pylint==2.11.1 isort==5.9.2 flake8==4.0.1 +flake8-typing-imports==1.11.0 mypy==0.910 diff --git a/setup.cfg b/setup.cfg index 61807a2219..39172c3765 100644 --- a/setup.cfg +++ b/setup.cfg @@ -41,7 +41,7 @@ install_requires = setuptools>=20.0 typed-ast>=1.4.0,<2.0;implementation_name=="cpython" and python_version<"3.8" typing-extensions>=3.10;python_version<"3.10" -python_requires = ~=3.6 +python_requires = >= 3.6.0 [options.packages.find] include =