[openstack-dev] Import ordering for oslo imports

Monty Taylor mordred at inaugust.com
Fri May 31 14:39:20 UTC 2013



On 05/31/2013 10:33 AM, David Ripton wrote:
> hacking's HACKING.rst says:
> 
>   {{stdlib imports in human alphabetical order}}
>   \n
>   {{third-party lib imports in human alphabetical order}}
>   \n
>   {{nova imports in human alphabetical order}}
>   \n
>   \n
>   {{begin your code}}
> 
> But should oslo imports (in code outside oslo itself) go in the
> third-party section or the project section?  oslo is kind of both --
> it's a separate project but it's part of OpenStack, not truly third-party.
> 
> I've seen it both ways in code I've reviewed lately, and it would be
> nice to be consistent.

I read "third party" to mean "things from outside of this source tree".



More information about the OpenStack-dev mailing list