##// END OF EJS Templates
revlog: subclass the new `repository.iverifyproblem` Protocol class...
revlog: subclass the new `repository.iverifyproblem` Protocol class This is the same transformation as 3a90a6fd710d did for dirstate, but the CamelCase naming was already cleaned up here. We shouldn't have to explicitly subclass, but I'm doing so to test the interplay of regular attributes and the `attrs` class. Also, PyCharm has a nifty feature that puts a jump point in the gutter to navigate back and forth between the base class and subclasses (and override functions and base class functions) when there's an explicit subclassing. Additionally, PyCharm will immediately flag signature mismatches without a 40m pytype run.

File last commit:

r53252:94f0940d default
r53365:4ef6dbc2 default
Show More
test-check-pylint.t
23 lines | 663 B | text/troff | Tads3Lexer
/ tests / test-check-pylint.t
av6
tests: remove hg10 requirement from test-check-pylint.t...
r50131 #require test-repo pylint
Pierre-Yves David
test: add a basic 'test-check-pylint.t'...
r31413
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
av6
tests: document what the other currently enabled pylint check ensures
r50687 - C0321: only one statement on a single line
Pierre-Yves David
test: add a basic 'test-check-pylint.t'...
r31413
$ touch $TESTTMP/fakerc
$ pylint --rcfile=$TESTTMP/fakerc --disable=all \
Boris Feld
pylint: add a check for multiple statement on a single line...
r35648 > --enable=W0102,C0321 \
Boris Feld
pylint: split command line argument on multiple lines...
r35645 > --reports=no \
Siddharth Agarwal
tests: disable lints on mercurial/thirdparty...
r34396 > --ignore=thirdparty \
test-pylint: stop checking hgext3rd...
r53252 > mercurial hgdemandimport hgext | sed 's/\r$//'
Matt Harbison
tests: adapt test-check-pylint to run on Windows...
r38206 Using config file *fakerc (glob) (?)
Jun Wu
test-check-pylint: match its output...
r31839 (?)
Matt Harbison
tests: update output for test-check-pylint.t...
r46686 ------------------------------------* (glob) (?)
Your code has been rated at 10.00/10* (glob) (?)
Jun Wu
test-check-pylint: match its output...
r31839 (?)