{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:
MyronFanQiu 2020-08-25 17:12:24 +08:00 коммит произвёл GitHub
Родитель 7f3b3ced6e
Коммит 1451a5d5ba
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
6 изменённых файлов: 8 добавлений и 7 удалений

Просмотреть файл

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

Просмотреть файл

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