Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Unable to enable all pylint messages #8

@howeaj

Description

@howeaj

Flakehell's configuration options are unable to enable all pylint messages on its own.

[tool.flakehell.plugins]
pylint = ["+*"]

Flakehell's documentation implies that the above is all that is required to enable everything.

However, this only enables messages that have not been disabled by pylint itself (either by default or by one of pylint's own configuration files)

Reproduction

The easiest way to reproduce this is by adding a # TODO whatever comment somewhere. This would trigger W0511 fixme, but pylint disables that warning by default.

then, pylint <file> --enable=all will report the warning, while flakehell lint configured with pylint = ["+*"] won't.

Workaround

To work around this, you need to add an additional section to one of pylint's own configuration files, such as in pyproject.toml:

[tool.pylint."MESSAGES CONTROL"]
enable = "all"

Only then will Flakehell have control over the enabling/disabling of all messages.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions