Integrate pylint with docker-compose interpreter
I'm using the docker-compose interpreter. Trying to integrate pylint, so that I can lint the current file in the IDE. Unfortunately this seems impossible:
The plugins just don't work with the docker-interpreter
Using as external tool does not work either since $FilePathRelativeToProjectRoot$ returns path with backslashes (I'm using windows as host system) but since the docker-compose interpreter runs on linux pylint does not accept the file path. This is the argument string I'm using in the external tool configuration:
run
--rm
myservice
pylint
--msg-template="$ProjectFileDir$/{path}:{line}:{column}: {msg_id}: {msg} ({symbol})"
$FilePathRelativeToProjectRoot$
Any suggestions?
请先登录再写评论。
I have the same situation. Did you find a solution?
I was thinking to just switch back to the local interpreter when using pylint.
Please vote for a related feature request https://youtrack.jetbrains.com/issue/PY-24640