From ebc3b75248d86cc5dca79833aabd5062d2292417 Mon Sep 17 00:00:00 2001 From: Bob Halley Date: Tue, 30 May 2017 12:01:35 -0700 Subject: [PATCH] update pylint settings for latest pylint --- pylintrc | 5 ++++- tests/test_name.py | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/pylintrc b/pylintrc index 474f9157..8a8ec2a5 100644 --- 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] diff --git a/tests/test_name.py b/tests/test_name.py index cb7dee02..85007b3b 100644 --- a/tests/test_name.py +++ b/tests/test_name.py @@ -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): -- 2.47.3