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

Skip to content

Flakehell does not use pylint #31

@iamtodor

Description

@iamtodor

Hello,

For some reason, flakehell does not use pylint and does not provide complaints from pylint. Meanwhile running vanilla pylint shows the errors.

Steps to reproduce

All the needed files

main.py

def foo():
    # TODO: fix it
    return 2


def print_hi(name, surname):
    # Use a breakpoint in the code line below to debug your script.
    print(f"Hi, {name}")  # Press ⌘F8 to toggle the breakpoint.


# Press the green button in the gutter to run the script.
if __name__ == "__main__":
    print_hi("PyCharm", "surname")

pyproject.toml

[tool.flakehell]
exclude = [
    ".local",
    ".history",
    ".venv",
    ".env",
    "venv",
    "env"
]
format = "grouped"
max_line_length = 120
show_source = true
extended_default_ignore = []

[tool.flakehell.plugins]
pyflakes = ["+*"]
flake8 = ["+*"]
pycodestyle = ["+*"]
pylint = ["+*"]

requirements.txt

black==22.6.0
flake8==3.9.2
isort==5.10.1
flakehell==0.9.0
pylint==2.9.6

Run linters

>>> python -m flakehell lint main.py
>>> python -m pylint main.py
************* Module main
main.py:2:5: W0511: TODO: fix it (fixme)
main.py:1:0: C0114: Missing module docstring (missing-module-docstring)
main.py:1:0: C0104: Disallowed name "foo" (disallowed-name)
main.py:1:0: C0116: Missing function or method docstring (missing-function-docstring)
main.py:6:0: C0116: Missing function or method docstring (missing-function-docstring)
main.py:6:19: W0613: Unused argument 'surname' (unused-argument)

------------------------------------------------------------------
Your code has been rated at 0.00/10

It could relate to #8 and #11

The workaround

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

taken from #8 does not work.

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