From c119b625c43153e74b56a2943cf9a3544df2035a Mon Sep 17 00:00:00 2001 From: Jeremy Magland Date: Sat, 21 Oct 2023 11:16:55 -0400 Subject: [PATCH] fixes for linter --- .github/workflows/testing.yml | 2 +- python/protocaas/common/_crypto_keys.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index d538fbe..66f20d2 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -11,7 +11,7 @@ jobs: - name: Install run: cd python && pip install -e . - name: Install packages needed for tests - run: pip install pytest pytest-cov pyright + run: pip install pytest pytest-cov pyright boto3 kachery_cloud - name: Run tests and collect coverage run: cd python && pyright && pytest --cov protocaas --cov-report=xml --cov-report=term tests/ - uses: codecov/codecov-action@v3 diff --git a/python/protocaas/common/_crypto_keys.py b/python/protocaas/common/_crypto_keys.py index 97a71eb..7faf8e6 100644 --- a/python/protocaas/common/_crypto_keys.py +++ b/python/protocaas/common/_crypto_keys.py @@ -53,11 +53,11 @@ def generate_keypair(): encoding=serialization.Encoding.Raw, format=serialization.PrivateFormat.Raw, encryption_algorithm=serialization.NoEncryption() - ).hex() + ).hex() # typing: ignore public_key_hex = pubk.public_bytes( encoding=serialization.Encoding.Raw, format=serialization.PublicFormat.Raw - ).hex() + ).hex() # typing: ignore test_msg = {'a': 1} test_signature = _sign_message(test_msg, public_key_hex, private_key_hex) assert _verify_signature(test_msg, public_key_hex, test_signature)