Add flake8 to the travis build to check for pep8 compliance.
The vast majority of the code changes are purely cosmetic. Of the top of my head I can think only two categories of changes that I wanted to run by you
One of the flags that was raised was about "bare" except: statements. I believe I replaced all of those with either except Exception: or except ValueError but let me know if you have a better way of handling that
I changed a docstring test so that it all fit on one line. Specifically, testing the DiscreteGamma function with three categories instead of four.
After you look this over, but before were merge, I can update the CHANGELOG and the version and etc.
This PR does two things
pep8
compliantflake8
to thetravis
build to check forpep8
compliance.The vast majority of the code changes are purely cosmetic. Of the top of my head I can think only two categories of changes that I wanted to run by you
except:
statements. I believe I replaced all of those with eitherexcept Exception:
orexcept ValueError
but let me know if you have a better way of handling thatDiscreteGamma
function with three categories instead of four.After you look this over, but before were merge, I can update the CHANGELOG and the version and etc.