Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] authored and wadhah101 committed May 9, 2023
1 parent d3c16c4 commit 39539e8
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ repos:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
- repo: https://github.com/ansible/ansible-lint.git
rev: v6.15.0
rev: v6.14.6
hooks:
- id: ansible-lint
entry: env ANSIBLE_ROLES_PATH="$ANSIBLE_ROLES_PATH:test/roles" ansible-lint
26 changes: 16 additions & 10 deletions tools/extract_plugin_names.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
import sys
import toml

if len(sys.argv) != 2:
print("Usage: python toml_to_json.py <filename>")
sys.exit(1)

filename = sys.argv[1]
with open(filename, "r") as f:
toml_data = toml.load(f)
def print_plugin_names() -> None:
import toml

result = toml_data["project"]["entry-points"]["molecule.driver"].keys()
for i in result:
print(i)
if len(sys.argv) != 2:
raise SystemExit(f"Usage: {sys.argv[0]} <filename>")

filename = sys.argv[1]
with open(filename) as f:
toml_data = toml.load(f)

result = toml_data["project"]["entry-points"]["molecule.driver"].keys()
for i in result:
print(i) # noqa: T201


if __name__ == "__main__":
print_plugin_names()
1 change: 0 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ description = Performs linting, style checks
allowlist_externals =
bash
rm
jq
deps =
pre-commit
toml
Expand Down

0 comments on commit 39539e8

Please sign in to comment.