Skip to content

Commit 0eceea4

Browse files
authored
CLN: move isort config to pyproject.toml (#42637)
* CLN: move isort config to pyproject.toml * clean
1 parent 28ff1e8 commit 0eceea4

File tree

2 files changed

+14
-15
lines changed

2 files changed

+14
-15
lines changed

pyproject.toml

+14
Original file line numberDiff line numberDiff line change
@@ -102,3 +102,17 @@ module = [
102102
"pandas.tests.test_expressions",
103103
]
104104
ignore_errors = true
105+
106+
# To be kept consistent with "Import Formatting" section in contributing.rst
107+
[tool.isort]
108+
known_pre_libs = "pandas._config"
109+
known_pre_core = ["pandas._libs", "pandas._typing", "pandas.util._*", "pandas.compat", "pandas.errors"]
110+
known_dtypes = "pandas.core.dtypes"
111+
known_post_core = ["pandas.tseries", "pandas.io", "pandas.plotting"]
112+
sections = ["FUTURE", "STDLIB", "THIRDPARTY" ,"PRE_LIBS" , "PRE_CORE", "DTYPES", "FIRSTPARTY", "POST_CORE", "LOCALFOLDER"]
113+
profile = "black"
114+
combine_as_imports = true
115+
force_grid_wrap = 2
116+
force_sort_within_sections = true
117+
skip_glob = "env"
118+
skip = "pandas/__init__.py"

setup.cfg

-15
Original file line numberDiff line numberDiff line change
@@ -190,18 +190,3 @@ exclude_lines =
190190

191191
[coverage:html]
192192
directory = coverage_html_report
193-
194-
# To be kept consistent with "Import Formatting" section in contributing.rst
195-
[isort]
196-
known_pre_libs = pandas._config
197-
known_pre_core = pandas._libs,pandas._typing,pandas.util._*,pandas.compat,pandas.errors
198-
known_dtypes = pandas.core.dtypes
199-
known_post_core = pandas.tseries,pandas.io,pandas.plotting
200-
sections = FUTURE,STDLIB,THIRDPARTY,PRE_LIBS,PRE_CORE,DTYPES,FIRSTPARTY,POST_CORE,LOCALFOLDER
201-
profile = black
202-
combine_as_imports = True
203-
line_length = 88
204-
force_grid_wrap = True
205-
force_sort_within_sections = True
206-
skip_glob = env,
207-
skip = pandas/__init__.py

0 commit comments

Comments
 (0)