manually creating a defaultdict - use collections.defaultdict(dict)
manually creating a defaultdict - use collections.defaultdict(set)
manually creating a defaultdict - use collections.defaultdict(list)
manually creating a counter - use collections.Counter
Detected hardcoded temp directory. Consider using ‘tempfile.TemporaryFile’ instead.
Class $A has defined __eq__ which means it should also have defined __hash__;
pass is the body of function $X. Consider removing this or raise NotImplementedError() if this is a TODO
pass is the body of for XinX in Y. Consider removing this or raise NotImplementedError() if this is a TODO
time.sleep() call; did you mean to leave this in?
Missing ‘encoding’ parameter. ‘open()’ uses device locale encodings by default, corrupting files with special characters. Specify the encoding to ensure cross-platform support when opening files in text mode (e.g. encoding=“utf-8”).
file object opened without corresponding close
Importing the python debugger; did you mean to leave this in?
Errors should only be logged when handled. The code logs the error and propogates the exception, consider reducing the level to warning or info.