mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Enable additional pylint rules and resolve issues found. (#47221)
* Resolve unneeded-not. * Resolve global-at-module-level. * Resolve useless-import-alias. * Resolve bad-whitespace. * Resolve global-variable-not-assigned. * Resolve logging-not-lazy. * Resolve comparison-with-itself.
This commit is contained in:
@@ -31,7 +31,7 @@ if not HAS_BOTO3:
|
||||
pytestmark = pytest.mark.skip("test_api_gateway.py requires the `boto3` and `botocore` modules")
|
||||
|
||||
import ansible.modules.cloud.amazon.aws_api_gateway as agw
|
||||
import ansible.module_utils.aws.core as core
|
||||
from ansible.module_utils.aws import core
|
||||
|
||||
|
||||
exit_return_dict = {}
|
||||
|
||||
@@ -4,7 +4,7 @@ import unittest
|
||||
boto3 = pytest.importorskip("boto3")
|
||||
botocore = pytest.importorskip("botocore")
|
||||
|
||||
import ansible.modules.cloud.amazon.kinesis_stream as kinesis_stream
|
||||
from ansible.modules.cloud.amazon import kinesis_stream
|
||||
|
||||
aws_region = 'us-west-2'
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@ if not HAS_BOTO3:
|
||||
pytestmark = pytest.mark.skip("test_api_gateway.py requires the `boto3` and `botocore` modules")
|
||||
|
||||
# these are here cause ... boto!
|
||||
import ansible.modules.cloud.amazon.lambda_policy as lambda_policy
|
||||
from ansible.modules.cloud.amazon import lambda_policy
|
||||
from ansible.modules.cloud.amazon.lambda_policy import setup_module_object
|
||||
try:
|
||||
from botocore.exceptions import ClientError
|
||||
|
||||
Reference in New Issue
Block a user