diff --git a/pylintrc b/pylintrc index 88a7de9f481..08f2d5cb2ab 100644 --- a/pylintrc +++ b/pylintrc @@ -35,7 +35,6 @@ disable= too-many-function-args, too-many-lines, unnecessary-comprehension, - unrecognized-inline-option, use-a-generator, using-constant-test, wrong-import-order, diff --git a/src/azure-cli-core/azure/cli/core/parser.py b/src/azure-cli-core/azure/cli/core/parser.py index f8cc2bc1f6d..84bcdb9c012 100644 --- a/src/azure-cli-core/azure/cli/core/parser.py +++ b/src/azure-cli-core/azure/cli/core/parser.py @@ -284,7 +284,7 @@ def parse_known_args(self, args=None, namespace=None): self._namespace, self._raw_arguments = super().parse_known_args(args=args, namespace=namespace) return self._namespace, self._raw_arguments - def _check_value(self, action, value): # pylint: too-many-locals, too-many-branches + def _check_value(self, action, value): # Override to customize the error message when a argument is not among the available choices # converted value must be one of the choices (if specified) if action.choices is not None and value not in action.choices: # pylint: disable=too-many-nested-blocks diff --git a/src/azure-cli/azure/cli/command_modules/eventgrid/custom.py b/src/azure-cli/azure/cli/command_modules/eventgrid/custom.py index 08cc7fa2c08..5b783af8e37 100644 --- a/src/azure-cli/azure/cli/command_modules/eventgrid/custom.py +++ b/src/azure-cli/azure/cli/command_modules/eventgrid/custom.py @@ -994,7 +994,7 @@ def _get_event_subscription_info( # pylint: disable=too-many-locals,too-many- condition1 = endpoint_type is not None and endpoint_type.lower() == WEBHOOK_DESTINATION.lower() condition2 = delivery_identity_endpoint_type is not None and \ - delivery_identity_endpoint_type.lower() == WEBHOOK_DESTINATION.lower() # pylint: line-too-long + delivery_identity_endpoint_type.lower() == WEBHOOK_DESTINATION.lower() if condition1 or condition2: tennant_id = azure_active_directory_tenant_id application_id = azure_active_directory_application_id_or_uri diff --git a/src/azure-cli/azure/cli/command_modules/resource/custom.py b/src/azure-cli/azure/cli/command_modules/resource/custom.py index 0fb4c107b3f..8e3cc3974da 100644 --- a/src/azure-cli/azure/cli/command_modules/resource/custom.py +++ b/src/azure-cli/azure/cli/command_modules/resource/custom.py @@ -1627,7 +1627,6 @@ def _single_or_collection(obj, default=None): return obj -# pylint: unused-argument def show_resource(cmd, resource_ids=None, resource_group_name=None, resource_provider_namespace=None, parent_resource_path=None, resource_type=None, resource_name=None, api_version=None, include_response_body=False, latest_include_preview=False): @@ -1697,7 +1696,6 @@ def delete_resource(cmd, resource_ids=None, resource_group_name=None, return _single_or_collection(results) -# pylint: unused-argument def update_resource(cmd, parameters, resource_ids=None, resource_group_name=None, resource_provider_namespace=None, parent_resource_path=None, resource_type=None, resource_name=None, api_version=None, @@ -1714,7 +1712,6 @@ def update_resource(cmd, parameters, resource_ids=None, for id_dict in parsed_ids]) -# pylint: unused-argument def tag_resource(cmd, tags, resource_ids=None, resource_group_name=None, resource_provider_namespace=None, parent_resource_path=None, resource_type=None, resource_name=None, api_version=None, is_incremental=None, latest_include_preview=False): @@ -1732,7 +1729,6 @@ def tag_resource(cmd, tags, resource_ids=None, resource_group_name=None, resourc tags, is_incremental)) for id_dict in parsed_ids]) -# pylint: unused-argument def invoke_resource_action(cmd, action, request_body=None, resource_ids=None, resource_group_name=None, resource_provider_namespace=None, parent_resource_path=None, resource_type=None, resource_name=None,