зеркало из https://github.com/microsoft/azure-cli.git
{CI} Example of bypassing show-command linter rule (#14903)
* bump to azdev 0.1.28 * disable four show-command linter rules * ignore bad-option-value for normal pylint
This commit is contained in:
Родитель
7f3b3ced6e
Коммит
1451a5d5ba
|
@ -14,7 +14,7 @@ steps:
|
|||
chmod +x env/bin/activate
|
||||
. env/bin/activate
|
||||
|
||||
pip install -q azdev==0.1.26
|
||||
pip install -q azdev==0.1.28
|
||||
azdev --version
|
||||
|
||||
if [ -z "$CLI_EXT_REPO_PATH" ]; then
|
||||
|
|
3
pylintrc
3
pylintrc
|
@ -14,7 +14,8 @@ disable=
|
|||
cyclic-import,
|
||||
too-many-arguments,
|
||||
invalid-name,
|
||||
duplicate-code
|
||||
duplicate-code,
|
||||
bad-option-value
|
||||
|
||||
[FORMAT]
|
||||
max-line-length=120
|
||||
|
|
|
@ -355,7 +355,7 @@ def load_command_table(self, _):
|
|||
g.custom_command('delete', 'delete_host_key')
|
||||
|
||||
with self.command_group('functionapp function') as g:
|
||||
g.custom_command('show', 'show_function')
|
||||
g.custom_command('show', 'show_function') # pylint: disable=show-command
|
||||
g.custom_command('delete', 'delete_function')
|
||||
|
||||
with self.command_group('functionapp function keys') as g:
|
||||
|
|
|
@ -16,12 +16,12 @@ def load_command_table(self, _):
|
|||
|
||||
with self.command_group('cache', configure_custom, is_preview=True) as g:
|
||||
g.command('list', 'list_cache_contents')
|
||||
g.command('show', 'show_cache_contents')
|
||||
g.command('show', 'show_cache_contents') # pylint: disable=show-command
|
||||
g.command('delete', 'delete_cache_contents')
|
||||
g.command('purge', 'purge_cache_contents')
|
||||
|
||||
with self.command_group('local-context', configure_custom, is_experimental=True) as g:
|
||||
g.command('on', 'turn_local_context_on')
|
||||
g.command('off', 'turn_local_context_off')
|
||||
g.command('show', 'show_local_context', validator=validate_local_context)
|
||||
g.command('show', 'show_local_context', validator=validate_local_context) # pylint: disable=show-command
|
||||
g.command('delete', 'delete_local_context', validator=validate_local_context_for_delete)
|
||||
|
|
|
@ -109,7 +109,7 @@ def load_command_table(self, _): # pylint: disable=too-many-statements
|
|||
with self.command_group('hdinsight autoscale', hdinsight_clusters_sdk, client_factory=cf_hdinsight_clusters) as g:
|
||||
g.custom_command('create', 'create_autoscale', supports_no_wait=True)
|
||||
g.custom_command('update', 'update_autoscale', supports_no_wait=True)
|
||||
g.custom_command('show', 'show_autoscale')
|
||||
g.custom_show_command('show', 'show_autoscale')
|
||||
g.custom_command('delete', 'delete_autoscale', supports_no_wait=True, confirmation=True)
|
||||
g.custom_command('list-timezones', 'list_timezones')
|
||||
g.wait_command('wait')
|
||||
|
|
|
@ -488,7 +488,7 @@ def load_command_table(self, _):
|
|||
g.command('delete', 'delete')
|
||||
|
||||
with self.command_group('vm monitor log', client_factory=cf_log_analytics_data_plane) as g:
|
||||
g.custom_command('show', 'execute_query_for_vm', transform=transform_log_analytics_query_output)
|
||||
g.custom_command('show', 'execute_query_for_vm', transform=transform_log_analytics_query_output) # pylint: disable=show-command
|
||||
|
||||
with self.command_group('vm monitor metrics', custom_command_type=monitor_custom, command_type=metric_definitions_sdk, resource_type=ResourceType.MGMT_MONITOR, operation_group='metric_definitions', min_api='2018-01-01', is_preview=True) as g:
|
||||
from azure.cli.command_modules.monitor.transformers import metrics_table, metrics_definitions_table
|
||||
|
|
Загрузка…
Ссылка в новой задаче