зеркало из https://github.com/microsoft/azure-cli.git
Merge pull request #191 from derekbekoe/pylint-init-imports
Fix: Pylint was not checking for unused_imports in __init__ files
This commit is contained in:
Коммит
3f7c60aa06
5
pylintrc
5
pylintrc
|
@ -5,8 +5,11 @@
|
|||
# I0011 Warning locally suppressed using disable-msg
|
||||
# W0511 fixme
|
||||
disable=C0111,C0103,I0011,W0511
|
||||
[VARIABLES]
|
||||
# Tells whether we should check for unused import in __init__ files.
|
||||
init-import=yes
|
||||
[DESIGN]
|
||||
# Maximum number of locals for function / method body
|
||||
max-locals=25
|
||||
# Maximum number of branch for function / method body
|
||||
max-branches=20
|
||||
max-branches=20
|
||||
|
|
|
@ -4,10 +4,10 @@ import pip
|
|||
from six.moves import input #pylint: disable=redefined-builtin
|
||||
|
||||
from azure.cli.parser import IncorrectUsageError
|
||||
from azure.cli.commands import CommandTable, COMMON_PARAMETERS
|
||||
from azure.cli.commands import CommandTable
|
||||
from azure.cli._locale import L
|
||||
|
||||
from azure.cli.utils.update_checker import check_for_component_update, UpdateCheckError
|
||||
from azure.cli.utils.update_checker import check_for_component_update
|
||||
|
||||
CLI_PACKAGE_NAME = 'azure-cli'
|
||||
COMPONENT_PREFIX = 'azure-cli-'
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
import time
|
||||
from azure.mgmt.network import NetworkManagementClient, NetworkManagementClientConfiguration
|
||||
from azure.mgmt.network.operations import (ApplicationGatewaysOperations,
|
||||
ExpressRouteCircuitAuthorizationsOperations,
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import azure.cli.command_modules.profile.account
|
||||
import azure.cli.command_modules.profile.login
|
||||
import azure.cli.command_modules.profile.logout
|
||||
from azure.cli.command_modules.profile.command_tables import COMMAND_TABLES, generate_command_table
|
||||
import azure.cli.command_modules.profile.account #pylint: disable=unused-import
|
||||
import azure.cli.command_modules.profile.login #pylint: disable=unused-import
|
||||
import azure.cli.command_modules.profile.logout #pylint: disable=unused-import
|
||||
from azure.cli.command_modules.profile.command_tables import generate_command_table
|
||||
|
||||
command_table = generate_command_table()
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
from __future__ import print_function
|
||||
import os
|
||||
from sys import stderr
|
||||
|
||||
from azure.storage.blob import PublicAccess, BlockBlobService, AppendBlobService, PageBlobService
|
||||
|
|
Загрузка…
Ссылка в новой задаче