Skip to content

Commit fb3b3e1

Browse files
authored
Merge pull request #2197 from sirosen/make-isort-consistent-about-build
Make 'isort' consistent about 'build'
2 parents 170b869 + a1c92b0 commit fb3b3e1

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,10 @@ pip-sync = "piptools.scripts.sync:cli"
7272

7373
[tool.isort]
7474
profile = "black"
75+
# explicitly mark 'build' as a third-party package
76+
# otherwise, in some executions, `isort` can mistake `piptools.build` for
77+
# `build` and treat it as a first-party module name
78+
known_third_party = ["build"]
7579
add_imports = "from __future__ import annotations"
7680

7781
[tool.mypy]

0 commit comments

Comments
 (0)