Skip to content

Commit 727d95f

Browse files
committed
parse the isort config when using pre-commit
1 parent cabefb3 commit 727d95f

File tree

2 files changed

+22
-18
lines changed

2 files changed

+22
-18
lines changed

.pre-commit-config.yaml

+20-16
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,21 @@
11
repos:
2-
- repo: https://github.com/python/black
3-
rev: stable
4-
hooks:
5-
- id: black
6-
language_version: python3.7
7-
- repo: https://gitlab.com/pycqa/flake8
8-
rev: 3.7.7
9-
hooks:
10-
- id: flake8
11-
language: python_venv
12-
additional_dependencies: [flake8-comprehensions]
13-
- repo: https://github.com/pre-commit/mirrors-isort
14-
rev: v4.3.20
15-
hooks:
16-
- id: isort
17-
language: python_venv
2+
- repo: https://github.com/python/black
3+
rev: stable
4+
hooks:
5+
- id: black
6+
language_version: python3.7
7+
- repo: https://gitlab.com/pycqa/flake8
8+
rev: 3.7.7
9+
hooks:
10+
- id: flake8
11+
language: python_venv
12+
additional_dependencies: [flake8-comprehensions]
13+
- repo: https://github.com/pre-commit/mirrors-isort
14+
rev: v4.3.20
15+
hooks:
16+
- id: isort
17+
language: python_venv
18+
- repo: https://github.com/asottile/seed-isort-config
19+
rev: v1.9.2
20+
hooks:
21+
- id: seed-isort-config

setup.cfg

+2-2
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ known_post_core=pandas.tseries,pandas.io,pandas.plotting
117117
sections=FUTURE,STDLIB,THIRDPARTY,PRE_LIBS,PRE_CORE,DTYPES,FIRSTPARTY,POST_CORE,LOCALFOLDER
118118

119119
known_first_party=pandas
120-
known_third_party=Cython,numpy,dateutil,matplotlib,python-dateutil,pytz,pyarrow,pytest
120+
known_third_party=_pytest,announce,dateutil,docutils,flake8,git,hypothesis,jinja2,lxml,matplotlib,numpy,numpydoc,pkg_resources,pyarrow,pytest,pytz,requests,scipy,setuptools,sphinx,sqlalchemy,validate_docstrings,yaml
121121

122122
multi_line_output=3
123123
include_trailing_comma=True
@@ -174,4 +174,4 @@ ignore_missing_imports=True
174174
no_implicit_optional=True
175175

176176
[mypy-pandas.conftest,pandas.tests.*]
177-
ignore_errors=True
177+
ignore_errors=True

0 commit comments

Comments
 (0)