diff --git a/supervisor/utils/codenotary.py b/supervisor/utils/codenotary.py index 79546405a..ddb963b7b 100644 --- a/supervisor/utils/codenotary.py +++ b/supervisor/utils/codenotary.py @@ -43,11 +43,13 @@ def calc_checksum_path_sourcecode(folder: Path) -> str: return dirhash(folder.as_posix(), "sha256", match=["*.py"]) +# pylint: disable=unreachable async def cas_validate( signer: str, checksum: str, ) -> None: """Validate data against CodeNotary.""" + return if (checksum, signer) in _CACHE: return diff --git a/tests/utils/test_codenotary.py b/tests/utils/test_codenotary.py index 32970129d..2cbab20bf 100644 --- a/tests/utils/test_codenotary.py +++ b/tests/utils/test_codenotary.py @@ -13,6 +13,8 @@ from supervisor.exceptions import ( ) from supervisor.utils.codenotary import calc_checksum, cas_validate +pytest.skip("code notary has been disabled due to issues", allow_module_level=True) + @dataclass class SubprocessResponse: