pycodestyle is a tool to check your Python code against some of the style conventions in PEP 8. $ pycodestyle --first optparse.py optparse.py:69:11: E401 multiple imports on one line optparse.py:77:1: ...
Computation was wrong: the mccabe complexity starts at 1, not 2. The max-complexity value is now inclusive. E.g.: if the value is 10 and the reported complexity is 10, then it passes. Add tests.