From 23a5893ede3a22653128d3e7a66fb3f6b80616b8 Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Thu, 13 Oct 2016 19:38:12 -0400 Subject: [PATCH] Locally disable another pylint warning to get clean again. --- .pylintrc | 18 ++++++++++++------ src/dunshire/games.py | 3 ++- 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/.pylintrc b/.pylintrc index 118da03..16b1ca7 100644 --- a/.pylintrc +++ b/.pylintrc @@ -6,7 +6,9 @@ persistent=no jobs=2 [MESSAGES CONTROL] -disable= +# Thanks, but you don't need to tell me that I suppressed the message +# that I suppressed. Kinda defeats the point, eh? +disable=I0011,I0020 [REPORTS] reports=no @@ -15,11 +17,10 @@ reports=no # Allow map() and filter() functions, because why the fuck not? bad-functions= -# These are all math names from the associated papers. It would be -# more confusing to name them something else and then have to juggle -# them in your head as you switch between the source code and the -# papers. -good-names=a,b,c,D,e1,e2,h,A,C,G,K,_K,L,L_matrix,_L,indented_L,M +# These are all names from the associated papers. It would be more +# confusing to name them something else and then have to juggle them +# in your head as you switch between the source code and the papers. +good-names=a,b,c,D,e1,e2,h,A,C,G,K,_K,L,_L,indented_L,M [MISCELLANEOUS] # List of note tags to take in consideration, separated by a comma. @@ -29,3 +30,8 @@ notes=FIXME,TODO [FORMAT] # Maximum number of characters on a single line. max-line-length=78 + +[DESIGN] +# Reduce this to 1 from 2, since pylint doesn't seem to think that +# __str__(), __contains__(), etc. are public methods. +min-public-methods=1 diff --git a/src/dunshire/games.py b/src/dunshire/games.py index 4ce323c..2cf23b2 100644 --- a/src/dunshire/games.py +++ b/src/dunshire/games.py @@ -606,7 +606,8 @@ def _random_icecream_params(): return (L, K, matrix(e1), matrix(e2)) -class SymmetricLinearGameTest(TestCase): +# Tell pylint to shut up about the large number of methods. +class SymmetricLinearGameTest(TestCase): # pylint: disable=R0904 """ Tests for the SymmetricLinearGame and Solution classes. """ -- 2.44.2