341 |
341 |
342 ruleMethods = [] |
342 ruleMethods = [] |
343 if not self.__ignoreCode("I901"): |
343 if not self.__ignoreCode("I901"): |
344 ruleMethods.append(self.__checkUnnecessaryAlias) |
344 ruleMethods.append(self.__checkUnnecessaryAlias) |
345 if ( |
345 if ( |
346 not self.__ignoreCode("I902") |
346 not self.__ignoreCode("I902") and |
347 and bool(self.__bannedModules) |
347 bool(self.__bannedModules) |
348 ): |
348 ): |
349 ruleMethods.append(self.__checkBannedImport) |
349 ruleMethods.append(self.__checkBannedImport) |
350 if ( |
350 if ( |
351 (not self.__ignoreCode("I903") and |
351 (not self.__ignoreCode("I903") and |
352 self.__banRelativeImports == "parents") or |
352 self.__banRelativeImports == "parents") or |