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

Cleanup / unused imports #629

Merged

Conversation

tremble
Copy link
Contributor

@tremble tremble commented Jul 9, 2021

SUMMARY

Running a slightly more nit-picky pylint picked up on a number of unused imports. For general code cleanliness we should clean these up. (When we don't, we often see things copied and pasted all over the place)

Also

  • reorders various imports (in the same files) based on the recommendations from PEP.
  • splits imports (in the same files) onto single lines to make rebase-conflicts easier to fix.
ISSUE TYPE
  • Feature Pull Request
COMPONENT NAME

plugins/modules/ec2_vpc_endpoint.py
plugins/modules/ec2_vpc_endpoint_info.py
plugins/modules/ec2_vpc_peering_info.py
plugins/modules/kinesis_stream.py
plugins/modules/wafv2_ip_set.py
plugins/modules/wafv2_ip_set_info.py
plugins/modules/wafv2_resources.py
plugins/modules/wafv2_resources_info.py
plugins/modules/wafv2_rule_group.py
plugins/modules/wafv2_rule_group_info.py
plugins/modules/wafv2_web_acl.py
plugins/modules/wafv2_web_acl_info.py
scripts/inventory/ec2.py
tests/unit/compat/builtins.py
tests/unit/plugins/modules/test_aws_acm.py
tests/unit/plugins/modules/test_aws_direct_connect_confirm_connection.py
tests/unit/plugins/modules/test_aws_direct_connect_connection.py
tests/unit/plugins/modules/test_aws_direct_connect_link_aggregation_group.py
tests/unit/plugins/modules/test_aws_direct_connect_virtual_interface.py
tests/unit/plugins/modules/test_data_pipeline.py
tests/unit/plugins/modules/test_ec2_vpc_vpn.py
tests/unit/plugins/modules/test_lambda.py

ADDITIONAL INFORMATION

@tremble tremble requested a review from markuman July 9, 2021 08:36
@ansibullbot
Copy link

@ansibullbot ansibullbot added community_review feature This issue/PR relates to a feature request inventory inventory plugin module module needs_maintainer needs_triage plugins plugin (any type) tests tests labels Jul 9, 2021
Copy link
Member

@markuman markuman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tremble tremble added the gate label Jul 9, 2021
@tremble

This comment has been minimized.

@tremble tremble removed the gate label Jul 9, 2021
@tremble tremble closed this Jul 9, 2021
@tremble tremble reopened this Jul 9, 2021
@alinabuzachis

This comment has been minimized.

1 similar comment
@tremble
Copy link
Contributor Author

tremble commented Jul 9, 2021

recheck

@tremble
Copy link
Contributor Author

tremble commented Jul 9, 2021

The test issue looks like a bad CentOS mirror that should now be fixed.

@tremble tremble added the gate label Jul 9, 2021
@ansible-zuul ansible-zuul bot merged commit 2463775 into ansible-collections:main Jul 9, 2021
alinabuzachis pushed a commit to alinabuzachis/community.aws that referenced this pull request Jul 16, 2021
…anup/unsed-imports

Cleanup / unused imports

SUMMARY
Running a slightly more nit-picky pylint picked up on a number of unused imports.  For general code cleanliness we should clean these up.  (When we don't, we often see things copied and pasted all over the place)
Also

reorders various imports (in the same files) based on the recommendations from PEP.
splits imports (in the same files) onto single lines to make rebase-conflicts easier to fix.

ISSUE TYPE

Feature Pull Request

COMPONENT NAME
plugins/modules/ec2_vpc_endpoint.py
plugins/modules/ec2_vpc_endpoint_info.py
plugins/modules/ec2_vpc_peering_info.py
plugins/modules/kinesis_stream.py
plugins/modules/wafv2_ip_set.py
plugins/modules/wafv2_ip_set_info.py
plugins/modules/wafv2_resources.py
plugins/modules/wafv2_resources_info.py
plugins/modules/wafv2_rule_group.py
plugins/modules/wafv2_rule_group_info.py
plugins/modules/wafv2_web_acl.py
plugins/modules/wafv2_web_acl_info.py
scripts/inventory/ec2.py
tests/unit/compat/builtins.py
tests/unit/plugins/modules/test_aws_acm.py
tests/unit/plugins/modules/test_aws_direct_connect_confirm_connection.py
tests/unit/plugins/modules/test_aws_direct_connect_connection.py
tests/unit/plugins/modules/test_aws_direct_connect_link_aggregation_group.py
tests/unit/plugins/modules/test_aws_direct_connect_virtual_interface.py
tests/unit/plugins/modules/test_data_pipeline.py
tests/unit/plugins/modules/test_ec2_vpc_vpn.py
tests/unit/plugins/modules/test_lambda.py
ADDITIONAL INFORMATION

Reviewed-by: Markus Bergholz <git@osuv.de>
Reviewed-by: Alina Buzachis <None>

This commit was initially merged in https://github.com/ansible-collections/community.aws
See: ansible-collections@2463775
alinabuzachis pushed a commit to alinabuzachis/community.aws that referenced this pull request Jul 19, 2021
…-imports

Cleanup / unused imports

SUMMARY
Running a slightly more nit-picky pylint picked up on a number of unused imports.  For general code cleanliness we should clean these up.  (When we don't, we often see things copied and pasted all over the place)
Also

reorders various imports (in the same files) based on the recommendations from PEP.
splits imports (in the same files) onto single lines to make rebase-conflicts easier to fix.

ISSUE TYPE

Feature Pull Request

COMPONENT NAME
plugins/modules/ec2_vpc_endpoint.py
plugins/modules/ec2_vpc_endpoint_info.py
plugins/modules/ec2_vpc_peering_info.py
plugins/modules/kinesis_stream.py
plugins/modules/wafv2_ip_set.py
plugins/modules/wafv2_ip_set_info.py
plugins/modules/wafv2_resources.py
plugins/modules/wafv2_resources_info.py
plugins/modules/wafv2_rule_group.py
plugins/modules/wafv2_rule_group_info.py
plugins/modules/wafv2_web_acl.py
plugins/modules/wafv2_web_acl_info.py
scripts/inventory/ec2.py
tests/unit/compat/builtins.py
tests/unit/plugins/modules/test_aws_acm.py
tests/unit/plugins/modules/test_aws_direct_connect_confirm_connection.py
tests/unit/plugins/modules/test_aws_direct_connect_connection.py
tests/unit/plugins/modules/test_aws_direct_connect_link_aggregation_group.py
tests/unit/plugins/modules/test_aws_direct_connect_virtual_interface.py
tests/unit/plugins/modules/test_data_pipeline.py
tests/unit/plugins/modules/test_ec2_vpc_vpn.py
tests/unit/plugins/modules/test_lambda.py
ADDITIONAL INFORMATION

Reviewed-by: Markus Bergholz <git@osuv.de>
Reviewed-by: Alina Buzachis <None>
alinabuzachis pushed a commit to alinabuzachis/community.aws that referenced this pull request Jul 19, 2021
…-imports

Cleanup / unused imports

SUMMARY
Running a slightly more nit-picky pylint picked up on a number of unused imports.  For general code cleanliness we should clean these up.  (When we don't, we often see things copied and pasted all over the place)
Also

reorders various imports (in the same files) based on the recommendations from PEP.
splits imports (in the same files) onto single lines to make rebase-conflicts easier to fix.

ISSUE TYPE

Feature Pull Request

COMPONENT NAME
plugins/modules/ec2_vpc_endpoint.py
plugins/modules/ec2_vpc_endpoint_info.py
plugins/modules/ec2_vpc_peering_info.py
plugins/modules/kinesis_stream.py
plugins/modules/wafv2_ip_set.py
plugins/modules/wafv2_ip_set_info.py
plugins/modules/wafv2_resources.py
plugins/modules/wafv2_resources_info.py
plugins/modules/wafv2_rule_group.py
plugins/modules/wafv2_rule_group_info.py
plugins/modules/wafv2_web_acl.py
plugins/modules/wafv2_web_acl_info.py
scripts/inventory/ec2.py
tests/unit/compat/builtins.py
tests/unit/plugins/modules/test_aws_acm.py
tests/unit/plugins/modules/test_aws_direct_connect_confirm_connection.py
tests/unit/plugins/modules/test_aws_direct_connect_connection.py
tests/unit/plugins/modules/test_aws_direct_connect_link_aggregation_group.py
tests/unit/plugins/modules/test_aws_direct_connect_virtual_interface.py
tests/unit/plugins/modules/test_data_pipeline.py
tests/unit/plugins/modules/test_ec2_vpc_vpn.py
tests/unit/plugins/modules/test_lambda.py
ADDITIONAL INFORMATION

Reviewed-by: Markus Bergholz <git@osuv.de>
Reviewed-by: Alina Buzachis <None>
@tremble tremble deleted the cleanup/unsed-imports branch November 26, 2021 12:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community_review feature This issue/PR relates to a feature request inventory inventory plugin module module needs_maintainer needs_triage plugins plugin (any type) tests tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants