Show More
@@ -0,0 +1,15 b'' | |||||
|
1 | #require test-repo pylint hg10 | |||
|
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 | ||||
|
12 | $ touch $TESTTMP/fakerc | |||
|
13 | $ pylint --rcfile=$TESTTMP/fakerc --disable=all \ | |||
|
14 | > --enable=W0102 --reports=no \ | |||
|
15 | > mercurial hgext hgext3rd |
@@ -413,6 +413,12 b' def has_pyflakes():' | |||||
413 | br"<stdin>:1: 're' imported but unused", |
|
413 | br"<stdin>:1: 're' imported but unused", | |
414 | True) |
|
414 | True) | |
415 |
|
415 | |||
|
416 | @check("pylint", "Pylint python linter") | |||
|
417 | def has_pylint(): | |||
|
418 | return matchoutput("pylint --help", | |||
|
419 | br"Usage: pylint", | |||
|
420 | True) | |||
|
421 | ||||
416 | @check("pygments", "Pygments source highlighting library") |
|
422 | @check("pygments", "Pygments source highlighting library") | |
417 | def has_pygments(): |
|
423 | def has_pygments(): | |
418 | try: |
|
424 | try: |
General Comments 0
You need to be logged in to leave comments.
Login now