Skip to content
This repository was archived by the owner on Jan 6, 2023. It is now read-only.

Commit 5493a44

Browse files
Merge pull request #103 from greg-hellings/new_lint_errors
Fix lint errors and update
2 parents 63253ac + a3fe10c commit 5493a44

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

.pre-commit-config.yaml

+6-6
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ default_language_version:
44
minimum_pre_commit_version: "1.14.0"
55
repos:
66
- repo: https://github.com/pre-commit/pre-commit-hooks
7-
rev: v3.3.0
7+
rev: v3.4.0
88
hooks:
99
- id: end-of-file-fixer
1010
- id: trailing-whitespace
@@ -22,18 +22,18 @@ repos:
2222
hooks:
2323
- id: doc8
2424
- repo: https://github.com/python/black.git
25-
rev: 20.8b1
25+
rev: 21.5b1
2626
hooks:
2727
- id: black
2828
language_version: python3
2929
- repo: https://gitlab.com/pycqa/flake8.git
30-
rev: 3.8.4
30+
rev: 3.9.2
3131
hooks:
3232
- id: flake8
3333
additional_dependencies:
3434
- flake8-black
3535
- repo: https://github.com/codespell-project/codespell.git
36-
rev: v1.17.1
36+
rev: v2.0.0
3737
hooks:
3838
- id: codespell
3939
name: codespell
@@ -45,7 +45,7 @@ repos:
4545
require_serial: false
4646
additional_dependencies: []
4747
- repo: https://github.com/adrienverge/yamllint.git
48-
rev: v1.25.0
48+
rev: v1.26.1
4949
hooks:
5050
- id: yamllint
5151
files: \.(yaml|yml)$
@@ -64,7 +64,7 @@ repos:
6464
# use jinja templating, this will often fail and the syntax
6565
# error will be discovered in execution anyway)
6666
- repo: https://github.com/ansible/ansible-lint.git
67-
rev: v4.3.5
67+
rev: v5.0.8
6868
hooks:
6969
- id: ansible-lint
7070
always_run: true

molecule_vagrant/modules/vagrant.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ def __init__(self, module):
303303

304304
@contextlib.contextmanager
305305
def stdout_cm(self):
306-
""" Redirect the stdout to a log file. """
306+
"""Redirect the stdout to a log file."""
307307
with open(self._get_stdout_log(), "a+") as fh:
308308
msg = "### {} ###\n".format(self._datetime)
309309
fh.write(msg)
@@ -313,7 +313,7 @@ def stdout_cm(self):
313313

314314
@contextlib.contextmanager
315315
def stderr_cm(self):
316-
""" Redirect the stderr to a log file. """
316+
"""Redirect the stderr to a log file."""
317317
with open(self._get_stderr_log(), "a+") as fh:
318318
msg = "### {} ###\n".format(self._datetime)
319319
fh.write(msg)

molecule_vagrant/playbooks/prepare.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
(test -e /usr/bin/yum && sudo yum -y -qq install python3) ||
1313
(test -e /usr/sbin/pkg && sudo env ASSUME_ALWAYS_YES=yes pkg update && sudo env ASSUME_ALWAYS_YES=yes pkg install python3) ||
1414
(test -e /usr/sbin/pkg_add && sudo /usr/sbin/pkg_add -U -I -x python%3.7) ||
15-
echo "Warning: Python not boostrapped due to unknown platform."
15+
echo "Warning: Python not bootstrapped due to unknown platform."
1616
)
1717
become: true
1818
changed_when: false

0 commit comments

Comments
 (0)