masakari-monitors/HACKING.rst
Takashi Kajinami 741cffdfe7 Use LOG.warning instead of deprecated LOG.warn
The LOG.warn method is deprecated[1] and the LOG.warning method should
be used instead.

[1] https://docs.python.org/3/library/logging.html#logging.warning

Change-Id: I7e3dc5d1897cd10b94e0a5a5a06db667cba7d443
2022-01-28 09:05:39 +09:00

14 lines
591 B
ReStructuredText

masakari-monitors Style Commandments
===============================================
Read the OpenStack Style Commandments http://docs.openstack.org/developer/hacking/
masakari-monitors Specific Commandments
---------------------------------------
- [M301] Ensure that the _() function is explicitly imported to ensure proper translations.
- [M302] Validate that log messages are not translated.
- [M303] Yield must always be followed by a space when yielding a value.
- [M304] Check for usage of deprecated assertRaisesRegexp
- [M305] LOG.warn is deprecated. Enforce use of LOG.warning.