From 41a6e776195b96da9a765c5268b66e07878122e3 Mon Sep 17 00:00:00 2001 From: Patrick Collins <54278053+PatrickAlphaC@users.noreply.github.com> Date: Sat, 7 Dec 2024 00:25:19 -0500 Subject: [PATCH] fix: lint --- boa_zksync/compiler_utils.py | 7 ++++++- boa_zksync/types.py | 2 +- boa_zksync/util.py | 5 +++-- pyproject.toml | 5 +++++ 4 files changed, 15 insertions(+), 4 deletions(-) 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", ]