]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
update pylint settings for latest pylint
authorBob Halley <halley@dnspython.org>
Tue, 30 May 2017 19:01:35 +0000 (12:01 -0700)
committerBob Halley <halley@dnspython.org>
Tue, 30 May 2017 19:01:35 +0000 (12:01 -0700)
pylintrc
tests/test_name.py

index 474f9157557fd2ecdf79af5da26f2fdde8b7a297..8a8ec2a57d35cec726d55cfc4e61b0fe72fa96fc 100644 (file)
--- a/pylintrc
+++ b/pylintrc
@@ -11,6 +11,9 @@ enable=
     all,
     python3
 
+# It's worth looking at len-as-condition for optimization, but it's disabled
+# here as it is not a correctness thing.
+
 disable=
     R,
     I,
@@ -34,7 +37,7 @@ disable=
     unused-variable,
     wrong-import-order,
     wrong-import-position,
-
+    len-as-condition,
 
 [REPORTS]
 
index cb7dee02e6404239e79c78b293a6497c61afb806..85007b3b1c3a782d69de2435466c20d544bb3a10 100644 (file)
@@ -1,5 +1,5 @@
 # -*- coding: utf-8
-# Copyright (C) 2003-2007, 2009-2011 Nominum, Inc.
+# Copyright (C) 2003-2017 Nominum, Inc.
 #
 # Permission to use, copy, modify, and distribute this software and its
 # documentation for any purpose with or without fee is hereby granted,
@@ -27,7 +27,7 @@ import dns.name
 import dns.reversename
 import dns.e164
 
-# pylint: disable=line-too-long
+# pylint: disable=line-too-long,unsupported-assignment-operation
 
 
 class NameTestCase(unittest.TestCase):