[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
pre-commit-ci[bot] 2024-06-11 10:02:49 +05:30 committed by GitHub
parent 88acab517d
commit 6e9dd77b43
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 13 additions and 7 deletions

View File

@ -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

View File

@ -1,6 +1,7 @@
"""
The base class for cli_parsers
"""
from __future__ import absolute_import, division, print_function

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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