Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-commit.ci] pre-commit autoupdate #327

Merged
merged 3 commits into from
Jun 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading