deb-mistral/HACKING.rst
Sharat Sharma e986cb8542 Add hacking for code style checks
The following style checks are added:
 * do not use dict.iteritems
 * do not use dict.iterkeys
 * do not use dict.itervalues

Partial_implements: blueprint mistral-hacking

Change-Id: I25d846c80652d7746c3b958239797ce524ec235f
2017-03-16 07:38:09 +00:00

540 B

Style Commandments

Read the OpenStack Style Commandments http://docs.openstack.org/developer/hacking/

Mistral Specific Commandments

  • [M318] Change assertEqual(A, None) or assertEqual(None, A) by optimal assert like assertIsNone(A)
  • [M327] Do not use xrange(). xrange() is not compatible with Python 3. Use range() or six.moves.range() instead.
  • [M328] Python 3: do not use dict.iteritems.
  • [M329] Python 3: do not use dict.iterkeys.
  • [M330] Python 3: do not use dict.itervalues.