Files
glance/HACKING.rst
Takashi Kajinami 6708aebba0 Replace own hacking checks by built-on ones
Some of the checks implemented in the local plugin are already
implemented in core hacking and can be replaced.

Notes:

The following checks are enabled by default
 H211: Check for assertTrue(isinstance(a, b)) sentences
 H212: Check for assertEqual(type(A), B) sentences
 H213: Check for usage of deprecated assertRaisesRegexp

Also, the following checks are additionally enabled by this change.
 H204: Use assert(Not)Equal to check for equality
 H205: Use assert{Greater,Less}[Equal]

Change-Id: I7617b75adb8a5efc15fcf70d6e4b02a20cf9d365
Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
2026-02-05 22:57:00 +09:00

503 B

glance Style Commandments

glance Specific Commandments

  • [G319] Validate that debug level logs are not translated
  • [G327] Prevent use of deprecated contextlib.nested
  • [G328] Must use a dict comprehension instead of a dict constructor with a sequence of key-value pairs
  • [G330] Log.warn is deprecated. Enforce use of LOG.warning.