mistral/HACKING.rst
junboli a3a3f5330e Remove local Hacking for M318
Since we have added H203 in tox.ini [1], the local Hacking for M318
can be removed.
[1] https://review.openstack.org/#/c/484089/

Change-Id: Ieb652a41b77effdd8a67ea619ab592b1b065aec5
2017-07-27 08:27:29 +08:00

648 B

Style Commandments

Read the OpenStack Style Commandments https://docs.openstack.org/hacking/latest/

Mistral Specific Commandments

  • [M001] Use LOG.warning(). LOG.warn() is deprecated.
  • [M319] Enforce use of assertTrue/assertFalse
  • [M320] Enforce use of assertIs/assertIsNot
  • [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.
  • [M331] String interpolation should be delayed at logging calls.