neutron-lib/HACKING.rst
Ihar Hrachyshka 7c09268021 Deprecate N523 check that forbids oslo.* imports
Oslo libraries don't ship oslo.* import namespace for a while, so there
is no real need to check against its usage. Since the module is public,
we need to follow deprecation process.

Note that only direct usage of the check is supported. Factory does not
register it anymore.

Change-Id: I48dc1555fd2c77708fd44f3eed4617f636c346de
2016-07-21 14:30:39 +02:00

968 B

neutron-lib Style Commandments

Neutron Specific Commandments

  • [N521] Validate that jsonutils module is used instead of json
  • [N523] DEPRECATED. Enforce namespace-less imports for oslo libraries
  • [N524] Prevent use of deprecated contextlib.nested.
  • [N525] Python 3: Do not use xrange.
  • [N526] Python 3: do not use basestring.
  • [N527] Python 3: do not use dict.iteritems.
  • [N529] Method's default argument shouldn't be mutable
  • [N530] No importing of neutron; should be ignored in neutron itself
  • [N531] Validate that LOG messages, except debug ones, have translations
  • [N532] Validate that LOG.warning is used instead of LOG.warn. The latter is deprecated.
  • [N533] Validate that debug level logs are not translated
  • [N534] Exception messages should be translated