mirror of
https://github.com/ansible-collections/kubernetes.core.git
synced 2026-03-29 06:43:02 +00:00
[backport/2.3] Upgrade black version (#424)
Depends-On: ansible/ansible-zuul-jobs#1515
Upgrade black version
SUMMARY
Move off of beta version of black and pin to current calendar year
version.
The only manual changes here are to tox.ini. Everything else is from running the new version of black.
ISSUE TYPE
COMPONENT NAME
ADDITIONAL INFORMATION
Reviewed-by: Abhijeet Kasurde
(cherry picked from commit 7c71436)
This commit is contained in:
@@ -123,9 +123,15 @@ def main():
|
||||
state=dict(
|
||||
type="str", default="present", choices=["present", "absent", "latest"]
|
||||
),
|
||||
plugin_path=dict(type="str",),
|
||||
plugin_name=dict(type="str",),
|
||||
plugin_version=dict(type="str",),
|
||||
plugin_path=dict(
|
||||
type="str",
|
||||
),
|
||||
plugin_name=dict(
|
||||
type="str",
|
||||
),
|
||||
plugin_version=dict(
|
||||
type="str",
|
||||
),
|
||||
# Helm options
|
||||
context=dict(
|
||||
type="str",
|
||||
|
||||
@@ -81,7 +81,9 @@ def main():
|
||||
module = AnsibleModule(
|
||||
argument_spec=dict(
|
||||
binary_path=dict(type="path"),
|
||||
plugin_name=dict(type="str",),
|
||||
plugin_name=dict(
|
||||
type="str",
|
||||
),
|
||||
# Helm options
|
||||
context=dict(
|
||||
type="str",
|
||||
|
||||
@@ -227,7 +227,10 @@ def execute_module(module, k8s_ansible_mixin):
|
||||
|
||||
|
||||
def main():
|
||||
module = AnsibleModule(argument_spec=argspec(), supports_check_mode=True,)
|
||||
module = AnsibleModule(
|
||||
argument_spec=argspec(),
|
||||
supports_check_mode=True,
|
||||
)
|
||||
from ansible_collections.kubernetes.core.plugins.module_utils.common import (
|
||||
K8sAnsibleMixin,
|
||||
get_api_client,
|
||||
|
||||
@@ -164,7 +164,8 @@ SCALE_ARG_SPEC = {
|
||||
|
||||
|
||||
def execute_module(
|
||||
module, k8s_ansible_mixin,
|
||||
module,
|
||||
k8s_ansible_mixin,
|
||||
):
|
||||
k8s_ansible_mixin.set_resource_definitions(module)
|
||||
|
||||
|
||||
@@ -187,7 +187,7 @@ def merge_dicts(x, y):
|
||||
|
||||
|
||||
def argspec():
|
||||
""" argspec property builder """
|
||||
"""argspec property builder"""
|
||||
argument_spec = copy.deepcopy(AUTH_ARG_SPEC)
|
||||
argument_spec.update(COMMON_ARG_SPEC)
|
||||
argument_spec.update(RESOURCE_ARG_SPEC)
|
||||
@@ -196,7 +196,7 @@ def argspec():
|
||||
|
||||
|
||||
def execute_module(module, k8s_ansible_mixin):
|
||||
""" Module execution """
|
||||
"""Module execution"""
|
||||
k8s_ansible_mixin.set_resource_definitions(module)
|
||||
|
||||
api_version = "v1"
|
||||
|
||||
@@ -301,7 +301,10 @@ class K8sTaintAnsible:
|
||||
|
||||
|
||||
def main():
|
||||
module = AnsibleModule(argument_spec=argspec(), supports_check_mode=True,)
|
||||
module = AnsibleModule(
|
||||
argument_spec=argspec(),
|
||||
supports_check_mode=True,
|
||||
)
|
||||
k8s_taint = K8sTaintAnsible(module)
|
||||
k8s_taint.execute_module()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user