when I run Pylint as a Build command I use the pylint parameter --msg-template="{path}:{line}: [{msg_id}({symbol}), {obj}] {msg}" and get the messages in the compiler tab of Geany coloured and when I klick the red lines the cursor jumps to that line (marvellous)
the same behaviour I would like with Mypy: - with no parameters the print looks good, but no (coloured) clickable lines - with parm –pretty it looks better (carets indicate the error more precisely) but still no klickable lines
what have I missed?
Hi,
You need to set an error regular expression to parse the messages.
Cheers Lex
On Tue, 24 Dec 2019 at 09:23, Georg Klingenberg georg.klingenberg@travedsl.de wrote:
when I run Pylint as a Build command I use the pylint parameter --msg-template="{path}:{line}: [{msg_id}({symbol}), {obj}] {msg}" and get the messages in the compiler tab of Geany coloured and when I klick the red lines the cursor jumps to that line (marvellous)
the same behaviour I would like with Mypy: - with no parameters the print looks good, but no (coloured) clickable lines - with parm –pretty it looks better (carets indicate the error more precisely) but still no klickable lines
what have I missed? _______________________________________________ Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
aye aye Sir! I must have been too excited about this soft landing of type checking in Python and on top of that the master is one of the maintainers..
-----Original Message----- From: Lex Trotman Sent: Tuesday, December 24, 2019 1:03 AM To: Geany general discussion list Subject: Re: [Geany-Users] Python type checking with Mypy
Hi,
You need to set an error regular expression to parse the messages.
Cheers Lex
On Tue, 24 Dec 2019 at 09:23, Georg Klingenberg georg.klingenberg@travedsl.de wrote:
when I run Pylint as a Build command I use the pylint parameter --msg-template="{path}:{line}: [{msg_id}({symbol}), {obj}] {msg}" and get the messages in the compiler tab of Geany coloured and when I klick the red lines the cursor jumps to that line (marvellous)
the same behaviour I would like with Mypy: - with no parameters the print looks good, but no (coloured) clickable lines - with parm –pretty it looks better (carets indicate the error more precisely) but still no klickable lines
what have I missed? _______________________________________________ Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
_______________________________________________ Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users