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.
Hello,
For some reason,
flakehelldoes not usepylintand does not provide complaints frompylint. Meanwhile running vanilla pylint shows the errors.Steps to reproduce
All the needed files
main.py
pyproject.toml
requirements.txt
Run linters
It could relate to #8 and #11
The workaround
taken from #8 does not work.