Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrickAlphaC committed Dec 7, 2024
1 parent 5621f2e commit 41a6e77
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 4 deletions.
7 changes: 6 additions & 1 deletion boa_zksync/compiler_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion boa_zksync/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
5 changes: 3 additions & 2 deletions boa_zksync/util.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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,
)

Expand Down
5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
]

0 comments on commit 41a6e77

Please sign in to comment.