You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While trying to land isort in CI in #3329, I discovered that the behavior of our current isort config depends on whether some modules (e.g., typing_extensions) are installed in the runtime environment where isort is run. This is bad because it means that contributors running isort locally may get different behavior depending on what libraries they happen to have installed in their local environment.
Set virtual_env to some random folder. This should hopefully guarantee that isort isn't dependent on contributors' environments.
Set default_section to THIRDPARTY, so that whether or not isort detects a library the resulting section is hopefully the same. This might have slightly worse ordering though?
I'm in favour of explicitly marking those as "standard library".
Activity
hauntsaninja commentedon Jun 28, 2020
The two options I can see are:
virtual_envto some random folder. This should hopefully guarantee that isort isn't dependent on contributors' environments.default_sectiontoTHIRDPARTY, so that whether or not isort detects a library the resulting section is hopefully the same. This might have slightly worse ordering though?I'm in favour of explicitly marking those as "standard library".
adjust isort config
adjust isort config (#4290)