Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#105)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/PyCQA/isort: 5.9.1 → 5.9.3](PyCQA/isort@5.9.1...5.9.3)
- https://github.com/python/black.githttps://github.com/psf/black
- [github.com/psf/black: 21.6b0 → 21.8b0](psf/black@21.6b0...21.8b0)
- https://gitlab.com/pycqa/flake8.githttps://github.com/PyCQA/flake8
- [github.com/adrienverge/yamllint.git: v1.26.1 → v1.26.3](https://github.com/adrienverge/yamllint.git/compare/v1.26.1...v1.26.3)
- [github.com/pre-commit/mirrors-pylint: v3.0.0a3 → v3.0.0a4](pre-commit/mirrors-pylint@v3.0.0a3...v3.0.0a4)

* Molecule output has changed

* Fix errors in the update lint

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Gregory Hellings <[email protected]>
  • Loading branch information
pre-commit-ci[bot] and greg-hellings authored Sep 6, 2021
1 parent 4f289f7 commit f9ab223
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 11 deletions.
12 changes: 6 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
repos:
- repo: https://github.com/PyCQA/isort
rev: 5.9.1
rev: 5.9.3
hooks:
- id: isort
- repo: https://github.com/python/black.git
rev: 21.6b0
- repo: https://github.com/psf/black
rev: 21.8b0
hooks:
- id: black
language_version: python3
Expand All @@ -18,12 +18,12 @@ repos:
- id: check-executables-have-shebangs
- id: check-merge-conflict
- id: debug-statements
- repo: https://gitlab.com/pycqa/flake8.git
- repo: https://github.com/PyCQA/flake8
rev: 3.9.2
hooks:
- id: flake8
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.26.1
rev: v1.26.3
hooks:
- id: yamllint
files: \.(yaml|yml)$
Expand All @@ -41,7 +41,7 @@ repos:
- py>=1.9.0
- types-PyYAML
- repo: https://github.com/pre-commit/mirrors-pylint
rev: v3.0.0a3
rev: v3.0.0a4
hooks:
- id: pylint
additional_dependencies:
Expand Down
8 changes: 4 additions & 4 deletions src/tox_ansible/ansible/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,19 +183,19 @@ def tox_cases(self):
galaxy_file = path.join(self.directory, "galaxy.yml")
if path.isfile(galaxy_file):
galaxy_config = load_yaml(galaxy_file)
for command in ANSIBLE_TEST_COMMANDS:
for command in ANSIBLE_TEST_COMMANDS.items():
if not path.exists(
path.join(
self.directory,
ANSIBLE_TEST_COMMANDS[command].get("requires", ""),
command[1].get("requires", ""),
)
):
continue
try:
tox_cases.append(
ToxAnsibleTestCase(
command,
args=ANSIBLE_TEST_COMMANDS[command]["args"],
command[0],
args=command[1]["args"],
galaxy_config=galaxy_config,
)
)
Expand Down
4 changes: 3 additions & 1 deletion tests/test_everything.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,4 +159,6 @@ def test_run_with_test_command(capfd):
except FileNotFoundError:
pass
cli = run_tox(["-e", "roles-simple-default"], capfd)
assert "tox-ansible is the best" in cli
assert (
"roles-simple-default: commands succeeded" in cli
), f"Important text missing from {cli}"

0 comments on commit f9ab223

Please sign in to comment.