Make it possible to use different .isort.cfg for different directories
Categories
(Developer Infrastructure :: Lint and Formatting, enhancement)
Tracking
(firefox110 fixed)
| Tracking | Status | |
|---|---|---|
| firefox110 | --- | fixed |
People
(Reporter: marco, Assigned: marco)
References
Details
Attachments
(2 files)
This will allow us to specify certain modules as first party and address issues such as https://phabricator.services.mozilla.com/D162661#5353348.
Currently it is possible to set up separate .isort.cfg files, but isort and flake8-isort pick up a different one depending on whether they are run on the repository root or on the directory containing the .isort.cfg file.
| Assignee | ||
Comment 1•3 years ago
|
||
This makes it possible to use the resolve all configs option and set up
different first party modules for different directories.
The downside is that configuration options (e.g. profile = black) have to
be repeated in every .isort.cfg file, because isort never merges configuration
files.
| Assignee | ||
Comment 2•3 years ago
|
||
Depends on D163567
Comment 4•3 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/554116951cdc
https://hg.mozilla.org/mozilla-central/rev/2999496cb626
Description
•