From 6cf6ca46ff0a2253f8447f1f8d8d88901d8f4658 Mon Sep 17 00:00:00 2001 From: keclar Date: Fri, 4 Sep 2020 19:25:16 +0000 Subject: [PATCH] Removed single duplicate key. --- ci/2.7.pylintrc | 1 - ci/3.6.pylintrc | 1 - tests/utils/test_flexible_version.py | 8 +------- 3 files changed, 1 insertion(+), 9 deletions(-) diff --git a/ci/2.7.pylintrc b/ci/2.7.pylintrc index 168e991578..cba12279f1 100644 --- a/ci/2.7.pylintrc +++ b/ci/2.7.pylintrc @@ -13,7 +13,6 @@ # cell-var-from-loop: (hi-pri) A variable used in a closure is defined in a loop. This will result in all closures using the same value for the closed-over variable. # cyclic-import: (hi-pri) Used when a cyclic import between two or more modules is detected. # dangerous-default-value: (hi-pri) Used when a mutable value as list or dictionary is detected in a default value for an argument. -# duplicate-key: (hi-pri) Used when a dictionary expression binds the same key multiple times. # expression-not-assigned: (hi-pri) Used when an expression that is not a function call is assigned to nothing. # duplicate-code: (hi-pri) Indicates that a set of similar lines has been detected among multiple file. (also disabled globally) # fixme: Used when a warning note as FIXME or TODO is detected diff --git a/ci/3.6.pylintrc b/ci/3.6.pylintrc index 13d25c21f6..1697f20da9 100644 --- a/ci/3.6.pylintrc +++ b/ci/3.6.pylintrc @@ -17,7 +17,6 @@ # consider-using-in: To check if a variable is equal to one of many values,combine the values into a tuple and check if the variable is contained "in" it instead of checking for equality against each of the values. # cyclic-import: (hi-pri) Used when a cyclic import between two or more modules is detected. # dangerous-default-value: (hi-pri) Used when a mutable value as list or dictionary is detected in a default value for an argument. -# duplicate-key: (hi-pri) Used when a dictionary expression binds the same key multiple times. # duplicate-code: (hi-pri) Indicates that a set of similar lines has been detected among multiple file. (also disabled globally) # duplicate-string-formatting-argument: (hi-pri) Used when we detect that a string formatting is repeating an argument instead of using named string arguments # expression-not-assigned: (hi-pri) Used when an expression that is not a function call is assigned to nothing. diff --git a/tests/utils/test_flexible_version.py b/tests/utils/test_flexible_version.py index 034e3280e0..0e538e894b 100644 --- a/tests/utils/test_flexible_version.py +++ b/tests/utils/test_flexible_version.py @@ -88,7 +88,7 @@ def test_compile_pattern(self): # pylint: disable=useless-return def test_compile_pattern_sep(self): # pylint: disable=useless-return self.v.sep = '-' self.v._compile_pattern() # pylint: disable=protected-access - tests = { # pylint: disable=duplicate-key + tests = { '1': True, '1-2': True, '1-2-3': True, @@ -97,10 +97,8 @@ def test_compile_pattern_sep(self): # pylint: disable=useless-return '1alpha': True, '1-alpha': True, - '1-alpha': True, '1alpha0': True, '1-alpha0': True, - '1-alpha0': True, '1-2alpha': True, '1-2.alpha': True, '1-2-alpha': True, @@ -110,10 +108,8 @@ def test_compile_pattern_sep(self): # pylint: disable=useless-return '1beta': True, '1-beta': True, - '1-beta': True, '1beta0': True, '1-beta0': True, - '1-beta0': True, '1-2beta': True, '1-2.beta': True, '1-2-beta': True, @@ -123,10 +119,8 @@ def test_compile_pattern_sep(self): # pylint: disable=useless-return '1rc': True, '1-rc': True, - '1-rc': True, '1rc0': True, '1-rc0': True, - '1-rc0': True, '1-2rc': True, '1-2.rc': True, '1-2-rc': True,