Skip to content

Commit

Permalink
Add flake8-typing-import to the pre-commit configuration (#1240)
Browse files Browse the repository at this point in the history
Relates to #1239

Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
  • Loading branch information
Pierre-Sassoulas and cdce8p authored Nov 21, 2021
1 parent 6f902e6 commit 3879acf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
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 @@ -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
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down

0 comments on commit 3879acf

Please sign in to comment.