[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](https://github.com/pre-commit/pre-commit-hooks/compare/v4.5.0...v4.6.0) - [github.com/psf/black: 23.12.1 → 24.4.2](https://github.com/psf/black/compare/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>pull/356/head v5.0.0
parent
88acab517d
commit
6e9dd77b43
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
"""
|
||||
The base class for cli_parsers
|
||||
"""
|
||||
|
||||
from __future__ import absolute_import, division, print_function
|
||||
|
||||
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
"""
|
||||
The base class for validator
|
||||
"""
|
||||
|
||||
from __future__ import absolute_import, division, print_function
|
||||
|
||||
|
||||
|
@ -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
|
||||
|
|
|
@ -3,6 +3,7 @@ json parser
|
|||
|
||||
This is the json parser for use with the cli_parse module and action plugin
|
||||
"""
|
||||
|
||||
from __future__ import absolute_import, division, print_function
|
||||
|
||||
|
||||
|
|
|
@ -4,6 +4,7 @@ textfsm parser
|
|||
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
|
||||
|
||||
|
||||
|
|
|
@ -4,6 +4,7 @@ ttp parser
|
|||
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
|
||||
|
||||
|
||||
|
|
|
@ -4,6 +4,7 @@ xml parser
|
|||
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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue