diff options
author | esberglu <esberglu@us.ibm.com> | 2018-02-13 10:29:58 -0600 |
---|---|---|
committer | Eric Berglund <esberglu@us.ibm.com> | 2018-02-26 14:32:22 +0000 |
commit | b5f38fb40a9acf9f8e922e64727cb81c53e6ac7c (patch) | |
tree | 1c3d493100ac442aa68c6dd9de8f1e731504cc5b /HACKING.rst | |
parent | fba4161f71e47e4155e7f9a1f0d3a41b8107cef5 (diff) | |
download | nova-b5f38fb40a9acf9f8e922e64727cb81c53e6ac7c.tar.gz |
Add check for redundant import aliases
This adds a pep8 function that will check for redundant import aliases.
Any imports of the forms below will not be allowed.
from x import y as y
import x as x
import x.y as y
Change-Id: Iff90f0172d97bd1d49d54c811a70c8af11776da4
Diffstat (limited to 'HACKING.rst')
-rw-r--r-- | HACKING.rst | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/HACKING.rst b/HACKING.rst index 8de49a735a..e06eae7352 100644 --- a/HACKING.rst +++ b/HACKING.rst @@ -66,6 +66,7 @@ Nova Specific Commandments - [N357] Use oslo_utils.uuidutils or uuidsentinel(in case of test cases) to generate UUID instead of uuid4(). - [N358] Return must always be followed by a space when returning a value. +- [N359] Check for redundant import aliases. Creating Unit Tests ------------------- |