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
This commit is contained in:
esberglu 2018-02-13 10:29:58 -06:00 committed by Eric Berglund
parent cdcd68bcc9
commit ed496ae862
1 changed files with 1 additions and 0 deletions

View File

@ -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
-------------------