[Openstack] Openstack special sauce checking tool??

2012-06-28 Thread Joshua Harlow
Hi all, I remember hearing once that someone had a openstack import/hacking style checking tool. I was wondering if such a thing existed to verify same the openstack way of doing imports and other special checks to match the openstack style. I know a lot of us run pep8/pylint, but those don't

Re: [Openstack] Openstack special sauce checking tool??

2012-06-28 Thread Timothy Daly
nova has tools/hacking.py, which looks like it does check some import stuff, among other things. -tim On Jun 28, 2012, at 10:15 AM, Joshua Harlow wrote: Hi all, I remember hearing once that someone had a openstack import/hacking style checking tool. I was wondering if such a thing

Re: [Openstack] Openstack special sauce checking tool??

2012-06-28 Thread Joshua Harlow
Sweet, didn't know about that :-P Maybe that should be in openstack-common?? On 6/28/12 10:48 AM, Timothy Daly ti...@yahoo-inc.com wrote: nova has tools/hacking.py, which looks like it does check some import stuff, among other things. -tim On Jun 28, 2012, at 10:15 AM, Joshua Harlow wrote:

Re: [Openstack] Openstack special sauce checking tool??

2012-06-28 Thread Johannes Erdfelt
On Thu, Jun 28, 2012, Joshua Harlow harlo...@yahoo-inc.com wrote: I remember hearing once that someone had a openstack import/hacking style checking tool. I was wondering if such a thing existed to verify same the openstack way of doing imports and other special checks to match the openstack

Re: [Openstack] Openstack special sauce checking tool??

2012-06-28 Thread Joe Gordon
Josh, https://github.com/openstack/nova/blob/master/tools/hacking.py run when do a ./run_tests.sh -p in nova. On Thu, Jun 28, 2012 at 10:15 AM, Joshua Harlow harlo...@yahoo-inc.comwrote: Hi all, I remember hearing once that someone had a openstack import/hacking style checking tool. I

Re: [Openstack] Openstack special sauce checking tool??

2012-06-28 Thread Eric Windisch
I've recently discovered that running code against Cython tends to catch things that pep8/pylint won't catch. One great thing it does is detect if a required import is missing. The other tools don't do this. The only downside I've found so far has been that it has very limited support for