Closed Bug 1803510 Opened 3 years ago Closed 3 years ago

Make it possible to use different .isort.cfg for different directories

Categories

(Developer Infrastructure :: Lint and Formatting, enhancement)

enhancement

Tracking

(firefox110 fixed)

RESOLVED 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.

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.

See Also: → 1803830
Pushed by mcastelluccio@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/554116951cdc Set up isort as a separate linter. r=linter-reviewers,ahal DONTBUILD https://hg.mozilla.org/integration/autoland/rev/2999496cb626 Add an isort linting task. r=linter-reviewers,ahal DONTBUILD
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: