searchlight/HACKING.rst

755 B

Searchlight Style Commandments

Searchlight Specific Commandments

  • [SL316] Change assertTrue(isinstance(A, B)) by optimal assert like assertIsInstance(A, B)
  • [SL317] Change assertEqual(type(A), B) by optimal assert like assertIsInstance(A, B)
  • [SL318] Change assertEqual(A, None) or assertEqual(None, A) by optimal assert like assertIsNone(A)
  • [SL319] Validate that logs are not translated
  • [SL320] For python 3 compatibility, use six.text_type() instead of unicode()
  • [SL327] Prevent use of deprecated contextlib.nested
  • [SL343] Check for common double word typos