monasca-docker icon indicating copy to clipboard operation
monasca-docker copied to clipboard

Add linters to Travis: Python

Open digitalfishpond opened this issue 8 years ago • 2 comments

Splitting #191 for manageability

digitalfishpond avatar Oct 19 '17 09:10 digitalfishpond

I think we should configure it with same/similar configuration like in openstack E.g. max line length is 120 in monasca-api: https://github.com/openstack/monasca-api/blob/master/tox.ini#L147

matrixik avatar Oct 25 '17 11:10 matrixik

I think that most standard/popular way of having configuration for Python linters would be setup.cfg file http://renesd.blogspot.com/2017/02/setupcfg-solution-to-python-config-file.html

Some more info for consideration with pylint: https://codewithoutrules.com/2016/10/19/pylint/

matrixik avatar Oct 26 '17 12:10 matrixik