mistral/HACKING.rst
junboli f64f6c14ed Fix the pep8 commands failed
* Fix the pep8 commands failed and Enable H904 checks in tox.ini.
* Hacking M331 still has Bug and remove it from HACKING, use H904 instead.

Change-Id: Iaf692bc139b309376917832aaa749cc141c11275
2017-07-27 22:15:12 +08:00

582 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.