]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
pylint: enable `duplicate-key` check
authorAngus Lees <gus@inodes.org>
Thu, 4 Jun 2015 02:55:02 +0000 (12:55 +1000)
committerAngus Lees <gus@inodes.org>
Thu, 4 Jun 2015 03:10:44 +0000 (13:10 +1000)
This check attempts to detect dictionary literals with duplicate keys.

The rest of the Neutron tree has already had the few instances of this
cleaned[1] or moved into external vendor repos.  Enabling the pylint
check will stop future occurrences.

[1] I29cd2b843a7905986de13a1ecfba0cb5797ccaf8

(Original patch I1aa221d2019853f905f2b8421dd45b0a3102baf0 by zhiyuan_cai)

Change-Id: If4fed9714cd7fa586845f21f8f56dde2645cc5e0
Co-Authored-By: zhiyuan_cai <luckyvega.g@gmail.com>
.pylintrc

index f2e4a0db2f2e6f5be11e22d4b8e253e07b71d863..5037da9166cb8902bd7a01ba4512c8870d254adc 100644 (file)
--- a/.pylintrc
+++ b/.pylintrc
@@ -31,7 +31,6 @@ disable=
  broad-except,
  dangerous-default-value,
  deprecated-lambda,
- duplicate-key,
  expression-not-assigned,
  fixme,
  global-statement,