From ace772b8926851e3db6a6d9d07f6b9952fc498b0 Mon Sep 17 00:00:00 2001 From: Pierre Sassoulas Date: Fri, 12 Nov 2021 17:24:04 +0100 Subject: [PATCH] Add flake8-typing-import to the pre-commit configuration Relates to #1239 --- .pre-commit-config.yaml | 2 +- requirements_test_pre_commit.txt | 1 + setup.cfg | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f0a7ccbf71..9d1099d659 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -45,7 +45,7 @@ repos: rev: 4.0.1 hooks: - id: flake8 - additional_dependencies: [flake8-bugbear] + additional_dependencies: [flake8-bugbear, flake8-typing-imports==1.11.0] exclude: tests/testdata|doc/conf.py - repo: local hooks: 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 7482c74b9d..ceeab161b9 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 =