From cd5b5d664fb3ed9071bb57460573a68406419878 Mon Sep 17 00:00:00 2001 From: Dan Smith Date: Thu, 8 Nov 2012 15:37:44 -0800 Subject: [PATCH] Ban db import from nova/virt This makes hacking.py complain if someone adds something like: from nova import db into any of the files in nova/virt/* (aside from the fake.py file). It also removes the rest of the dangling db imports that are no longer needed. Yay! Change-Id: Iba3d53b87e65e33a55f8e5033b5d1d33b28d12f7 --- HACKING.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/HACKING.rst b/HACKING.rst index 52dc38bf8..bf8274cea 100644 --- a/HACKING.rst +++ b/HACKING.rst @@ -33,6 +33,7 @@ Imports - Do not import objects, only modules (*) - Do not import more than one module per line (*) - Do not make relative imports +- Do not make new nova.db imports in nova/virt/* - Order your imports by the full module path - Organize your imports according to the following template