Skip to content

Some warnings can't be disabled with --quiet #1525

@sztamas

Description

@sztamas

There are some early warnings in settings.py:Config.__init__ that can't be disabled with quiet because they conditionals use self.quiet, but self.quiet isn't set until later in the method.

Ex. deprecation warning for using not-skip shows up event though I used --quiet.

▶ isort . --check  --quiet
/home/sztamas/Work/isort/isort/settings.py:429: UserWarning: W0503: Deprecated config options were used: not_skip.Please see the 5.0.0 upgrade guide: bit.ly/isortv5.
  warn(

Code for the example above

https://github.com/PyCQA/isort/blob/develop/isort/settings.py#L428

but there are a few other warnings as well.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions