Skip to content

quiet in pyproject.toml not respected when isort run from code #1461

@czerus

Description

@czerus

Hi

I have an isort settings in pyproject.toml that looks like follow:

[tool.isort]
sections = "FUTURE,STDLIB,THIRDPARTY,FIRSTPARTY,LOCALFOLDER"
line_length = 120
known_first_party = "libName"
case_sensitive = true
quiet = true

and using isort in python script (together with autopep) to format the code: isort.file(path_to_file). When isort finds that something needs to be reformatted in a file it prints: "Fixing path_to_file". So it does not respect the configuration from toml. In order to fix that I need to pass the custom Config instance to file method but this overwrites all the settings from toml. Wha is strange is that isort run from command line properly handles this quiet in toml and does not prints "Fixing...."

I am using python 3.6.8 and isort 5.5.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions