Abort commit if changeset generate pylint error

Diogo Paschoal paschoalete at gmail.com
Tue Feb 6 20:24:43 UTC 2018


Hi there.
 I'm looking for a mercurial hook that stop the current commit if a linter
(mainly pylint, but could be other) show error over the current changeset.
 What i've found till now is something that do this for the entire file.
Also, i've found a little described solution with Paver, but i didn't got
the trick to put it to run, cause there is no examples.
 Write it by myself would work too, but how can i get only the changeset
and run the linter over this changeset, or get the pylint errors for that
changeset (run pylint over all file, but get the errors only in that
changeset)?

Thanks.

Diogo Paschoal.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mercurial-scm.org/pipermail/mercurial/attachments/20180206/d16efe91/attachment.html>


More information about the Mercurial mailing list