File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11"""Polywrap Manifest contains the types and functions to de/serialize Wrap manifests."""
22from .deserialize import *
3- from .manifest import *
43from .errors import *
4+ from .manifest import *
Original file line number Diff line number Diff line change 66from typing import Optional
77
88from polywrap_msgpack import msgpack_decode
9-
109from pydantic import ValidationError
10+
1111from .errors import DeserializeManifestError
1212from .manifest import *
1313
@@ -37,18 +37,18 @@ def deserialize_wrap_manifest(
3737 no_validate = options and options .no_validate
3838 try :
3939 manifest_version = WrapManifestVersions (decoded_manifest ["version" ])
40- except ValueError as e :
40+ except ValueError as err :
4141 raise DeserializeManifestError (
4242 f"Invalid wrap manifest version: { decoded_manifest ['version' ]} "
43- ) from e
43+ ) from err
4444 match manifest_version .value :
4545 case "0.1" :
4646 if no_validate :
4747 raise NotImplementedError ("No validate not implemented for 0.1" )
4848 try :
4949 return WrapManifest_0_1 .validate (decoded_manifest )
50- except ValidationError as e :
51- raise DeserializeManifestError ("Invalid manifest" ) from e
50+ except ValidationError as err :
51+ raise DeserializeManifestError ("Invalid manifest" ) from err
5252 case _:
5353 raise NotImplementedError (
5454 f"Version { manifest_version .value } is not implemented"
Original file line number Diff line number Diff line change @@ -7,4 +7,3 @@ class ManifestError(Exception):
77
88class DeserializeManifestError (ManifestError ):
99 """Raised when a manifest cannot be deserialized."""
10-
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ commands =
1414commands =
1515 isort --check-only polywrap_manifest
1616 black --check polywrap_manifest
17- pycln --check polywrap_manifest --disable-all-dunder-policy
17+ ; pycln --check polywrap_manifest --disable-all-dunder-policy
1818 pylint polywrap_manifest
1919 pydocstyle polywrap_manifest
2020
@@ -30,4 +30,4 @@ commands =
3030commands =
3131 isort polywrap_manifest
3232 black polywrap_manifest
33- pycln polywrap_manifest --disable-all-dunder-policy
33+ ; pycln polywrap_manifest --disable-all-dunder-policy
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ commands =
1010commands =
1111 isort --check-only polywrap_uri_resolvers
1212 black --check polywrap_uri_resolvers
13- pycln --check polywrap_uri_resolvers --disable-all-dunder-policy
13+ ; pycln --check polywrap_uri_resolvers --disable-all-dunder-policy
1414 pylint polywrap_uri_resolvers
1515 pydocstyle polywrap_uri_resolvers
1616
@@ -26,5 +26,5 @@ commands =
2626commands =
2727 isort polywrap_uri_resolvers
2828 black polywrap_uri_resolvers
29- pycln polywrap_uri_resolvers --disable-all-dunder-policy
29+ ; pycln polywrap_uri_resolvers --disable-all-dunder-policy
3030
You can’t perform that action at this time.
0 commit comments