Page MenuHomeSoftware Heritage

Add isort configuration
AbandonedPublic

Authored by anlambert on Jul 16 2020, 10:31 AM.

Details

Reviewers
acezar
Group Reviewers
Reviewers
Summary

The default isort configuration did not match the actual sorting of the
imports. The "black" profile provided by isort seems to match and had
been added to pyproject.toml since the black configuration was already
in this file and is one of the recommended places to put isort
configuration according to the isort documentation.

Diff Detail

Event Timeline

Build has FAILED

The build fails because as far as i could tell the staging push instruction (happening during the arc diff command) did not occur (or fail somehow).
I don't know much else though.

I think that's a good idea but we need to make it happen on all our repositories.

ping present staff members @anlambert @olasd @douardda ^

We do not use isort for now, so I'm a bit puzzled by the "The default isort configuration did not match the actual sorting of the
imports. " statement above.

With this configuration, how is isort supposed to be executed? by black? by pre-commit?

Note that I find it a good idea to use it, but as already said, if we include it, it must be done (the same) on all swh repos.

anlambert abandoned this revision.
anlambert added a reviewer: acezar.

isort pre-commit hook and its configuration compatible with black have been added to all swh repositories (see T2610) so abandoning this.