isort icon indicating copy to clipboard operation
isort copied to clipboard

Feature request

Open zkaimuldenov-bc opened this issue 3 years ago • 2 comments

Hello! I want pyporject.toml to produce lines in a separate line for the known_third_party line. I am afraid if we have several PRs, it will be hard to track the changes in this line because all of the module names are put in one line. basically, I want it looks like that :

known_third_party=[
"Cython", 
"IPython", 
"airflow", 
"airflow_DAG_utils",
 "alembic"
]

instead of : known_third_party=["Cython", "IPython", "airflow", "airflow_DAG_utils", "alembic",] I want to add this feature by myself and contribute to the project. I just want to learn if maybe it is done already or if there are some objections to that

zkaimuldenov-bc avatar May 09 '22 11:05 zkaimuldenov-bc

@zkaimuldenov-bc,

This seems to work already as a feature of the TOML spec, as can be seen in the docs here: https://toml.io/en/v1.0.0#array

brl0 avatar Jun 19 '22 18:06 brl0

@brl0 oh great. How should I specify it in my ".pre-commit" yaml file?

zkaimuldenov-bc avatar Jun 20 '22 10:06 zkaimuldenov-bc