vitrage/HACKING.rst
Eyal 1c3ed3ba78 add disable log.warn to hacking
logging.warn is deprecated in python 3

Change-Id: Ib2f25afc99169057179ae036273c526afc24e55e
2017-11-20 11:43:11 +02:00

940 B

vitrage Style Commandments

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

Vitrage Specific Commandments

[V316] assertTrue(isinstance(a, b)) sentences not allowed [V317] assertEqual(type(A), B) sentences not allowed [V318] assertEqual(A, None) or assertEqual(None, A) sentences not allowed [V319] Don't translate logs [V320] Use six.text_type() instead of unicode() [V321] contextlib.nested is deprecated [V322] use a dict comprehension instead of a dict constructor with a sequence of key-value pairs [V323] Do not use xrange. Use range, or six.moves.range [V324] Use six.iteritems() or dict.items() instead of dict.iteritems() [V325] Use six.iterkeys() or dict.keys() instead of dict.iterkeys() [V326] Use six.itervalues() or dict.values instead of dict.itervalues() [V327] Method's default argument shouldn't be mutable [V328] Disallow LOG.warn