-
Notifications
You must be signed in to change notification settings - Fork 64
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 tox.ini and GHA #439
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
29688ba
Cleanup tox.ini and GHA
GomathiselviS e657679
Fix typo
GomathiselviS d54815d
Skip ansible-lint for tests
GomathiselviS bff5cc2
ansible-lint failure fixes
GomathiselviS e7bf52b
Add isort and remove 2.13 from sanity tests
GomathiselviS 38dc4de
update galaxy version
GomathiselviS 487e9dd
Add changelog
GomathiselviS 30cd39e
Update changelog fragment
mariolenz 2a67133
test with asyncio changes
GomathiselviS cbe717b
test with asyncio changes
GomathiselviS db38f3b
update ignore file
GomathiselviS File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
profile: production | ||
|
||
exclude_paths: | ||
- tests/integration | ||
- tests/sanity | ||
- modules.yaml | ||
|
||
skip_list: | ||
- yaml[indentation] |
4 changes: 2 additions & 2 deletions
4
.github/workflows/changelog.yml → .github/workflows/changelog.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,13 @@ | ||
name: Linters | ||
concurrency: | ||
group: ${{ github.head_ref }} | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
- reopened | ||
- labeled | ||
- unlabeled | ||
- synchronize | ||
branches: | ||
- main | ||
|
@@ -20,3 +18,10 @@ on: | |
jobs: | ||
linters: | ||
uses: ansible-network/github_actions/.github/workflows/tox-linters.yml@main | ||
ansible-lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: ansible-network/github_actions/.github/actions/checkout_dependency@main | ||
|
||
- name: Run ansible-lint | ||
uses: ansible/[email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
breaking_changes: | ||
- "Remove support for ansible-core < 2.14" | ||
trivial: | ||
- "Organize GitHub workflows" | ||
- "ansible-lint and isort fixes" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
--- | ||
namespace: vmware | ||
name: vmware_rest | ||
readme: README.md | ||
version: null | ||
version: 3.0.0 | ||
authors: | ||
- Ansible (https://github.com/ansible) | ||
description: | ||
license: | ||
- Ansible (https://github.com/ansible) | ||
description: VMware collection for Ansible | ||
license_file: LICENSE | ||
tags: | ||
- cloud | ||
- vmware | ||
- virtualization | ||
- cloud | ||
- vmware | ||
- virtualization | ||
dependencies: | ||
cloud.common: '>=2.0.4,<3.0.0' | ||
cloud.common: ">=2.0.4,<3.0.0" | ||
repository: https://github.com/ansible-collections/vmware.vmware_rest.git | ||
homepage: https://github.com/ansible-collections/vmware.vmware_rest | ||
issues: https://github.com/ansible-collections/vmware.vmware_rest/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc | ||
build_ignore: | ||
- 'config/*' | ||
- config/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
requires_ansible: '>=2.9.10' | ||
requires_ansible: ">=2.14.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,9 +29,9 @@ | |
- name: set connection info | ||
ansible.builtin.set_fact: | ||
connection_args: | ||
vcenter_hostname: "vcenter.test" | ||
vcenter_username: "[email protected]" | ||
vcenter_password: "1234" | ||
vcenter_hostname: "vcenter.test" | ||
vcenter_username: "[email protected]" | ||
vcenter_password: "1234" | ||
|
||
- name: lookup MoID of the object | ||
ansible.builtin.debug: msg="{{ lookup('vmware.vmware_rest.cluster_moid', '/my_dc/host/my_cluster', **connection_args) }}" | ||
|
@@ -49,13 +49,13 @@ | |
""" | ||
|
||
|
||
from ansible_collections.cloud.common.plugins.plugin_utils.turbo.lookup import ( | ||
TurboLookupBase as LookupBase, | ||
) | ||
from ansible_collections.vmware.vmware_rest.plugins.plugin_utils.lookup import ( | ||
Lookup, | ||
get_credentials, | ||
) | ||
from ansible_collections.cloud.common.plugins.plugin_utils.turbo.lookup import ( | ||
TurboLookupBase as LookupBase, | ||
) | ||
|
||
|
||
class LookupModule(LookupBase): | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this seems unnecessary, I would suggest removing this. if we need to make changes to the generator to do that I'd be ok with merging this for now as it should be harmless and doing that under a separate PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jillr I don't think this file is generated. At least, when I generate code with ansible.content_builder (for example here: #441) I don't see it. But I may be wrong... I'm still learning and might have make a mistake somewhere.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It might not be - I'm more familiar with the generated amazon collection and some of those module_utils lived in an early version of that generator, so calling it out just in case!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jillr It's already a very big PR with a lot of changes. I suggest to keep it like this and have a closer look at this later ;-)