Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#327)
Browse files Browse the repository at this point in the history
* [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 <[email protected]>
  • Loading branch information
pre-commit-ci[bot] and NilashishC authored Jun 11, 2024
1 parent 88acab5 commit 6e9dd77
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ repos:
- id: update-docs

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v4.6.0
hooks:
- id: check-merge-conflict
- id: debug-statements
Expand Down Expand Up @@ -36,7 +36,7 @@ repos:
args: ["--filter-files"]

- repo: https://github.com/psf/black
rev: 23.12.1
rev: 24.4.2
hooks:
- id: black

Expand Down
1 change: 1 addition & 0 deletions plugins/plugin_utils/base/cli_parser.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
The base class for cli_parsers
"""

from __future__ import absolute_import, division, print_function


Expand Down
11 changes: 6 additions & 5 deletions plugins/plugin_utils/base/validate.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
The base class for validator
"""

from __future__ import absolute_import, division, print_function


Expand Down Expand Up @@ -181,10 +182,10 @@ def _load_validator(engine, data, criteria, plugin_vars=None, cls_name="Validate
return validator, result
except Exception as exc:
result["failed"] = True
result[
"msg"
] = "For engine '{engine}' error loading the corresponding validate plugin: {err}".format(
engine=engine,
err=to_native(exc),
result["msg"] = (
"For engine '{engine}' error loading the corresponding validate plugin: {err}".format(
engine=engine,
err=to_native(exc),
)
)
return None, result
1 change: 1 addition & 0 deletions plugins/sub_plugins/cli_parser/json_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
This is the json parser for use with the cli_parse module and action plugin
"""

from __future__ import absolute_import, division, print_function


Expand Down
1 change: 1 addition & 0 deletions plugins/sub_plugins/cli_parser/textfsm_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
This is the textfsm parser for use with the cli_parse module and action plugin
https://github.com/google/textfsm
"""

from __future__ import absolute_import, division, print_function


Expand Down
1 change: 1 addition & 0 deletions plugins/sub_plugins/cli_parser/ttp_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
This is the ttp parser for use with the cli_parse module and action plugin
https://github.com/dmulyalin/ttp
"""

from __future__ import absolute_import, division, print_function


Expand Down
1 change: 1 addition & 0 deletions plugins/sub_plugins/cli_parser/xml_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
This is the xml parser for use with the cli_parse module and action plugin
https://github.com/martinblech/xmltodict
"""

from __future__ import absolute_import, division, print_function


Expand Down

0 comments on commit 6e9dd77

Please sign in to comment.