diff --git a/boa_zksync/compiler_utils.py b/boa_zksync/compiler_utils.py index 2c0f11b..36a014e 100644 --- a/boa_zksync/compiler_utils.py +++ b/boa_zksync/compiler_utils.py @@ -80,7 +80,12 @@ def get_compiler_output(output): # from the compiler. Assuming key names could change and also assuming that the # number of keys could change, this method breaks if any of that happens: - excluded_keys = {"version", "zk_version", "__VYPER_MINIMAL_PROXY_CONTRACT", "extra_data"} + excluded_keys = { + "version", + "zk_version", + "__VYPER_MINIMAL_PROXY_CONTRACT", + "extra_data", + } contract_keys = set(output.keys()) - excluded_keys if len(contract_keys) != 1: diff --git a/boa_zksync/types.py b/boa_zksync/types.py index 09d87c7..2c78082 100644 --- a/boa_zksync/types.py +++ b/boa_zksync/types.py @@ -203,7 +203,7 @@ def to_deployment( ): contract_name = getattr(contract, "contract_name", None) if (filename := getattr(contract, "filename", None)) is not None: - filename = str(filename) # can be Path sometimes + filename = str(filename) # can be Path sometimes try: source_bundle = get_verification_bundle(contract) except Exception as e: diff --git a/boa_zksync/util.py b/boa_zksync/util.py index 28f2b88..2fa37ca 100644 --- a/boa_zksync/util.py +++ b/boa_zksync/util.py @@ -1,9 +1,9 @@ import os import socket +import warnings from datetime import datetime, timedelta from subprocess import Popen, TimeoutExpired from time import sleep -import warnings import requests from requests.exceptions import ConnectionError @@ -91,7 +91,8 @@ def install_era_test_node( manually, but in the Colab environment, we can automate this process. """ warnings.warn( - "This feature is deprecated and will be removed in a future release. era_test_node has since been renamed to anvil-zksync.", + """This feature is deprecated and will be removed in a future release. + era_test_node has since been renamed to anvil-zksync.""", DeprecationWarning, ) diff --git a/pyproject.toml b/pyproject.toml index 290f5e4..8d0abe9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -48,4 +48,9 @@ dev-dependencies = [ "nest-asyncio>=1.6.0", "pytest-xdist>=3.6.1", "pytest>=8.3.3", + "mypy>=1.13.0", + "pip>=24.3.1", + "black>=24.10.0", + "flake8>=7.1.1", + "isort>=5.13.2", ]