tests/test-check-pylint.t
author Pierre-Yves David <pierre-yves.david@ens-lyon.org>
Wed, 28 Dec 2016 23:42:50 +0100
changeset 31413 aa797bd54f44
child 31839 5b048d5f8884
permissions -rw-r--r--
test: add a basic 'test-check-pylint.t' We add a minimal check using pylint for one case we knows we care about: "mutable default" argument. We'll likely extend this over time to cover other useful checks but this is a good starting point.

#require test-repo pylint hg10

Run pylint for known rules we care about.
-----------------------------------------

There should be no recorded failures; fix the codebase before introducing a
new check.

Current checks:
- W0102: no mutable default argument

  $ touch $TESTTMP/fakerc
  $ pylint --rcfile=$TESTTMP/fakerc --disable=all \
  >   --enable=W0102 --reports=no \
  >   mercurial hgext hgext3rd