Skip to content

Commit 6e9dd77

Browse files
[pre-commit.ci] pre-commit autoupdate (#327)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/pre-commit/pre-commit-hooks: v4.5.0 → v4.6.0](pre-commit/pre-commit-hooks@v4.5.0...v4.6.0) - [github.com/psf/black: 23.12.1 → 24.4.2](psf/black@23.12.1...24.4.2) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Nilashish Chakraborty <nilashishchakraborty8@gmail.com>
1 parent 88acab5 commit 6e9dd77

File tree

7 files changed

+13
-7
lines changed

7 files changed

+13
-7
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ repos:
77
- id: update-docs
88

99
- repo: https://github.com/pre-commit/pre-commit-hooks
10-
rev: v4.5.0
10+
rev: v4.6.0
1111
hooks:
1212
- id: check-merge-conflict
1313
- id: debug-statements
@@ -36,7 +36,7 @@ repos:
3636
args: ["--filter-files"]
3737

3838
- repo: https://github.com/psf/black
39-
rev: 23.12.1
39+
rev: 24.4.2
4040
hooks:
4141
- id: black
4242

plugins/plugin_utils/base/cli_parser.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
The base class for cli_parsers
33
"""
4+
45
from __future__ import absolute_import, division, print_function
56

67

plugins/plugin_utils/base/validate.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
The base class for validator
33
"""
4+
45
from __future__ import absolute_import, division, print_function
56

67

@@ -181,10 +182,10 @@ def _load_validator(engine, data, criteria, plugin_vars=None, cls_name="Validate
181182
return validator, result
182183
except Exception as exc:
183184
result["failed"] = True
184-
result[
185-
"msg"
186-
] = "For engine '{engine}' error loading the corresponding validate plugin: {err}".format(
187-
engine=engine,
188-
err=to_native(exc),
185+
result["msg"] = (
186+
"For engine '{engine}' error loading the corresponding validate plugin: {err}".format(
187+
engine=engine,
188+
err=to_native(exc),
189+
)
189190
)
190191
return None, result

plugins/sub_plugins/cli_parser/json_parser.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
44
This is the json parser for use with the cli_parse module and action plugin
55
"""
6+
67
from __future__ import absolute_import, division, print_function
78

89

plugins/sub_plugins/cli_parser/textfsm_parser.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
This is the textfsm parser for use with the cli_parse module and action plugin
55
https://github.com/google/textfsm
66
"""
7+
78
from __future__ import absolute_import, division, print_function
89

910

plugins/sub_plugins/cli_parser/ttp_parser.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
This is the ttp parser for use with the cli_parse module and action plugin
55
https://github.com/dmulyalin/ttp
66
"""
7+
78
from __future__ import absolute_import, division, print_function
89

910

plugins/sub_plugins/cli_parser/xml_parser.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
This is the xml parser for use with the cli_parse module and action plugin
55
https://github.com/martinblech/xmltodict
66
"""
7+
78
from __future__ import absolute_import, division, print_function
89

910

0 commit comments

Comments
 (0)