Debian Codegraph @

tests/test-check-pylint.t

raw
1 #require test-repo pylint
2
3 Run pylint for known rules we care about.
4 -----------------------------------------
5
6 There should be no recorded failures; fix the codebase before introducing a
7 new check.
8
9 Current checks:
10 - W0102: no mutable default argument
11 - C0321: only one statement on a single line
12
13 $ touch $TESTTMP/fakerc
14
15 #if windows
16 $ PYTHONPATH="`dirname $TESTDIR`;$PYTHONPATH"
17 #else
18 $ PYTHONPATH="`dirname $TESTDIR`:$PYTHONPATH"
19 #endif
20
21 $ export PYTHONPATH
22 $ pylint --rcfile=$TESTTMP/fakerc --disable=all \
23 > --enable=W0102,C0321 \
24 > --reports=no \
25 > --ignore=thirdparty \
26 > --score=no \
27 > mercurial hgdemandimport hgext | sed 's/\r$//'