Skip to content

Commit

Permalink
fixes for linter
Browse files Browse the repository at this point in the history
  • Loading branch information
magland committed Oct 21, 2023
1 parent 1db2d3c commit c119b62
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions python/protocaas/common/_crypto_keys.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c119b62

Please sign in to comment.