diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e9d9aab..95a5ec6 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.6.0 + rev: v5.0.0 hooks: - id: check-yaml @@ -10,24 +10,24 @@ repos: - id: isort - repo: https://github.com/psf/black - rev: 24.4.2 + rev: 24.10.0 hooks: - id: black name: black - repo: https://github.com/pycqa/flake8 - rev: 7.0.0 + rev: 7.1.1 hooks: - id: flake8 - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.10.0 + rev: v1.12.0 hooks: - id: mypy additional_dependencies: [types-setuptools, pydantic] - repo: https://github.com/executablebooks/mdformat - rev: 0.7.17 + rev: 0.7.18 hooks: - id: mdformat additional_dependencies: [mdformat-gfm, mdformat-frontmatter] diff --git a/ape_arbitrum/ecosystem.py b/ape_arbitrum/ecosystem.py index ab4250f..809c52a 100644 --- a/ape_arbitrum/ecosystem.py +++ b/ape_arbitrum/ecosystem.py @@ -21,6 +21,7 @@ # chain_id, network_id "mainnet": (42161, 42161), "sepolia": (421614, 421614), + "nova": (42170, 42170), } INTERNAL_TRANSACTION_TYPE = 106 @@ -30,7 +31,7 @@ class InternalTransaction(StaticFeeTransaction): - type: int = Field(INTERNAL_TRANSACTION_TYPE, exclude=True) + type: int = Field(default=INTERNAL_TRANSACTION_TYPE, exclude=True) class ApeArbitrumError(ApeException): @@ -110,6 +111,7 @@ class ArbitrumConfig(BaseEthereumConfig): DEFAULT_LOCAL_GAS_LIMIT: ClassVar[GasLimit] = LOCAL_GAS_LIMIT mainnet: NetworkConfig = _create_config() sepolia: NetworkConfig = _create_config() + nova: NetworkConfig = _create_config() class Arbitrum(Ethereum): diff --git a/pyproject.toml b/pyproject.toml index 8057ac0..05a5842 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -21,6 +21,7 @@ include = '\.pyi?$' [tool.pytest.ini_options] addopts = """ -p no:ape_test + -p no:pytest_ethereum --cov-branch --cov-report term --cov-report html diff --git a/setup.cfg b/setup.cfg index 67b74dc..22eb548 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,5 +1,6 @@ [flake8] max-line-length = 100 +ignore = E704,W503,PYD002 exclude = .venv* venv* diff --git a/setup.py b/setup.py index 896217f..336b172 100644 --- a/setup.py +++ b/setup.py @@ -11,14 +11,14 @@ "hypothesis>=6.2.0,<7.0", # Strategy-based fuzzer ], "lint": [ - "black>=24.4.2,<25", # Auto-formatter and linter - "mypy>=1.10.0,<2", # Static type analyzer + "black>=24.10.0,<25", # Auto-formatter and linter + "mypy>=1.12.0,<2", # Static type analyzer "types-setuptools", # Needed for mypy type shed - "flake8>=7.0.0,<8", # Style linter + "flake8>=7.1.1,<8", # Style linter "flake8-breakpoint>=1.1.0,<2", # Detect breakpoints left in code "flake8-print>=5.0.0,<6", # Detect print statements left in code "isort>=5.13.2,<6", # Import sorting linter - "mdformat>=0.7.17", # Auto-formatter for markdown + "mdformat>=0.7.1", # Auto-formatter for markdown "mdformat-gfm>=0.3.5", # Needed for formatting GitHub-flavored markdown "mdformat-frontmatter>=0.4.1", # Needed for frontmatters-style headers in issue templates "mdformat-pyproject>=0.0.1", # Allows configuring in pyproject.toml