From 5b51cdf2323a269be895bf852d9cedc99ba25305 Mon Sep 17 00:00:00 2001 From: Juliya Smith Date: Fri, 22 Nov 2024 10:19:35 -0600 Subject: [PATCH 1/4] fix: rm type --- ape_solidity/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ape_solidity/__init__.py b/ape_solidity/__init__.py index 97e4d82..fdde841 100644 --- a/ape_solidity/__init__.py +++ b/ape_solidity/__init__.py @@ -18,7 +18,7 @@ def register_compiler(): return (Extension.SOL.value,), SolidityCompiler -def __getattr__(name: str) -> Any: +def __getattr__(name: str): if name == "Extension": from ._utils import Extension From dfe84fc7f67235abf3521efa56c00a426cdc238d Mon Sep 17 00:00:00 2001 From: Juliya Smith Date: Fri, 22 Nov 2024 10:20:55 -0600 Subject: [PATCH 2/4] chore: precommit fix --- .pre-commit-config.yaml | 2 +- setup.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5a3bcd6..e321157 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -27,7 +27,7 @@ repos: additional_dependencies: [types-requests, types-setuptools, flake8-pydantic, flake8-type-checking] - repo: https://github.com/executablebooks/mdformat - rev: 0.7.18 + rev: 0.7.19 hooks: - id: mdformat additional_dependencies: [mdformat-gfm, mdformat-frontmatter, mdformat-pyproject] diff --git a/setup.py b/setup.py index 67e78ac..d4e5f26 100644 --- a/setup.py +++ b/setup.py @@ -20,15 +20,15 @@ "flake8-pydantic", # For detecting issues with Pydantic models "flake8-type-checking", # Detect imports to move in/out of type-checking blocks "isort>=5.13.2,<6", # Import sorting linter - "mdformat>=0.7.18", # Auto-formatter for markdown + "mdformat>=0.7.19", # 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 + "mdformat-pyproject>=0.0.2", # Allows configuring in pyproject.toml ], "doc": [ "Sphinx>=6.1.3,<7", # Documentation generator "sphinx_rtd_theme>=1.2.0,<2", # Readthedocs.org theme - "towncrier>=19.2.0, <20", # Generate release notes + "towncrier>=19.2.0,<20", # Generate release notes ], "release": [ # `release` GitHub Action job uses this "setuptools", # Installation tool From a9111308475b3923eb8dc63d5cda6b8a835958ae Mon Sep 17 00:00:00 2001 From: Juliya Smith Date: Fri, 22 Nov 2024 10:20:59 -0600 Subject: [PATCH 3/4] chore: precommit fix --- .pre-commit-config.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e321157..ba43032 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -19,12 +19,13 @@ repos: rev: 7.1.1 hooks: - id: flake8 + additional_dependencies: [flake8-breakpoint, flake8-print, flake8-pydantic, flake8-type-checking] - repo: https://github.com/pre-commit/mirrors-mypy rev: v1.13.0 hooks: - id: mypy - additional_dependencies: [types-requests, types-setuptools, flake8-pydantic, flake8-type-checking] + additional_dependencies: [types-requests, types-setuptools] - repo: https://github.com/executablebooks/mdformat rev: 0.7.19 From 1e049b905266ea7c3af23a7f0076e3d1c1e36945 Mon Sep 17 00:00:00 2001 From: Juliya Smith Date: Fri, 22 Nov 2024 10:39:25 -0600 Subject: [PATCH 4/4] chore: del import --- ape_solidity/__init__.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/ape_solidity/__init__.py b/ape_solidity/__init__.py index fdde841..cdca499 100644 --- a/ape_solidity/__init__.py +++ b/ape_solidity/__init__.py @@ -1,5 +1,3 @@ -from typing import Any - from ape import plugins