Upgrade black version (#424) (#446)

[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:
Mike Graves
2022-04-29 13:47:08 -04:00
committed by GitHub
parent 346808ec4b
commit 68d45af767
15 changed files with 105 additions and 59 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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