Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

{AKS} Fix several linter & style issues #7741

Merged
merged 1 commit into from
Jun 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/aks-preview/azext_aks_preview/_format.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def flatten_version_table(release_info):
def _custom_functions(preview_versions):
class CustomFunctions(functions.Functions): # pylint: disable=too-few-public-methods

@ functions.signature({'types': ['array']})
@functions.signature({'types': ['array']})
def _func_sort_versions(self, versions):
"""Custom JMESPath `sort_versions` function that sorts an array of strings as software versions"""
try:
Expand All @@ -190,7 +190,7 @@ def _func_sort_versions(self, versions):
except (TypeError, ValueError):
return versions

@ functions.signature({'types': ['array']})
@functions.signature({'types': ['array']})
def _func_set_preview_array(self, versions):
"""Custom JMESPath `set_preview_array` function that suffixes preview version"""
try:
Expand All @@ -200,7 +200,7 @@ def _func_set_preview_array(self, versions):
except (TypeError, ValueError):
return versions

@ functions.signature({'types': ['string']})
@functions.signature({'types': ['string']})
def _func_set_preview(self, version):
"""Custom JMESPath `set_preview` function that suffixes preview version"""
try:
Expand All @@ -210,7 +210,7 @@ def _func_set_preview(self, version):
except (TypeError, ValueError):
return version

@ functions.signature({'types': ['object']})
@functions.signature({'types': ['object']})
def _func_pprint_labels(self, labels):
"""Custom JMESPath `pprint_labels` function that pretty print labels"""
if not labels:
Expand Down
3 changes: 2 additions & 1 deletion src/aks-preview/azext_aks_preview/azext_metadata.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"azext.minCliCoreVersion": "2.56.0",
"azext.isPreview": true
"azext.isPreview": true,
"name": "aks-preview"
}
Loading