Skip to content

Commit

Permalink
Add explicit isort config for build package. (#966)
Browse files Browse the repository at this point in the history
This is a hack to workaround an obscure edge case. As of tox>=4, running
`tox -e py` generates a `build/` directory in the project root. That
confuses isort into thinking that `build` is a first-party package,
which sorts it in the same section as `twine`. This forces `build` to be
recognized as ta third-party package.
  • Loading branch information
bhrutledge committed Dec 18, 2022
1 parent f001a7e commit c5c0278
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .isort.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ profile=black
force_single_line=True
single_line_exclusions=typing
default_section=THIRDPARTY
known_third_party=build
known_first_party=twine,helpers

0 comments on commit c5c0278

Please sign in to comment.