Closed rchl closed 1 year ago
As far as I remember these outputs are often warnings rather than errors. Therefore I am not sure if I want to always expose it. Is your experience different in that regard?
Also in regard to the CI configuration: The line length for this project is actually 100 which is enforced by black. Thank you for pointing that out, that really should be made more consistant. Can you give me a quick explanation why you put it into the setup config? When does it make a difference? And why not the pyproject.toml (I honestly don't know)
As far as I remember these outputs are often warnings rather than errors. Therefore I am not sure if I want to always expose it. Is your experience different in that regard?
The mypy output in this case is literally what I've quoted and it comes from stderr
and breaks linting so I don't think it should be considered a warning.
But I guess what I should do to be safe is to create an error diagnostic if return code was non-0 and otherwise a warning.
Can you give me a quick explanation why you put it into the setup config? When does it make a difference? And why not the pyproject.toml (I honestly don't know)
Not sure apart from the fact that adding as [tool.flake8]
in pyproject.toml
doesn't seem to affect local flake8
. But I can read up on that.
Flake8 cannot be configured via pyproject.toml, even though virtually all other Python dev tools have adopted it as the central location for project configuration. The
ping
I have been away for the past 2 weeks. Your contribution is appreciated. I will have a detailed look and test it on the weekend.
The code has become quite complex. For now, I am ok with increasing the limit (that we did not adhere to anyway). For the future, I would like to try to get this down.
Generic mypy error was only visible to the user when running pylsp with
--verbose --verbose
.It took me way too much time to figure out why pylsp_mypy is not producing the same errors as the command-line variant did. It turned out the error was:
but that was only visible after I went and looked at pylsp_mypy source code and added some logs (didn't know about
--verbose --verbose
exposing that information at the time).That motivated me to expose this error as a diagnostic on the first line.
Also aligned local mypy configuration with one used on CI to get consistent results.