Skip to content

Commit b24bc5d

Browse files
feat!: Handle 0.7 breaking changes and updates [APE-1567] (#23)
1 parent e894caa commit b24bc5d

File tree

5 files changed

+16
-9
lines changed

5 files changed

+16
-9
lines changed

.mdformat.toml

Lines changed: 0 additions & 1 deletion
This file was deleted.

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ repos:
1010
- id: isort
1111

1212
- repo: https://github.com/psf/black
13-
rev: 23.10.1
13+
rev: 23.12.0
1414
hooks:
1515
- id: black
1616
name: black
@@ -21,7 +21,7 @@ repos:
2121
- id: flake8
2222

2323
- repo: https://github.com/pre-commit/mirrors-mypy
24-
rev: v1.6.1
24+
rev: v1.7.1
2525
hooks:
2626
- id: mypy
2727
additional_dependencies: [types-setuptools, pydantic]

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ requires = ["setuptools>=51.1.1", "wheel", "setuptools_scm[toml]>=5.0,<8"]
33

44
[tool.mypy]
55
exclude = "build/"
6+
plugins = ["pydantic.mypy"]
67

78
[tool.setuptools_scm]
89
write_to = "ape_polygon/version.py"
@@ -36,3 +37,6 @@ force_grid_wrap = 0
3637
include_trailing_comma = true
3738
multi_line_output = 3
3839
use_parentheses = true
40+
41+
[tool.mdformat]
42+
number = true

setup.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,22 @@
55
extras_require = {
66
"test": [ # `test` GitHub Action jobs uses this
77
"pytest>=6.0", # Core testing package
8-
"pytest-xdist", # multi-process runner
8+
"pytest-xdist", # Multi-process runner
99
"pytest-cov", # Coverage analyzer plugin
1010
"hypothesis>=6.2.0,<7", # Strategy-based fuzzer
1111
],
1212
"lint": [
13-
"black>=23.10.1,<24", # Auto-formatter and linter
14-
"mypy>=1.6.1,<2", # Static type analyzer
15-
"types-setuptools", # Needed due to mypy typeshed
13+
"black>=23.12.0,<24", # Auto-formatter and linter
14+
"mypy>=1.7.1,<2", # Static type analyzer
15+
"types-setuptools", # Needed for mypy type shed
1616
"flake8>=6.1.0,<7", # Style linter
17+
"flake8-breakpoint>=1.1.0,<2", # Detect breakpoints left in code
18+
"flake8-print>=5.0.0,<6", # Detect print statements left in code
1719
"isort>=5.10.1,<6", # Import sorting linter
1820
"mdformat>=0.7.17", # Auto-formatter for markdown
1921
"mdformat-gfm>=0.3.5", # Needed for formatting GitHub-flavored markdown
2022
"mdformat-frontmatter>=0.4.1", # Needed for frontmatters-style headers in issue templates
23+
"mdformat-pyproject>=0.0.1", # Allows configuring in pyproject.toml
2124
],
2225
"release": [ # `release` GitHub Action job uses this
2326
"setuptools", # Installation tool
@@ -57,7 +60,8 @@
5760
url="https://github.com/ApeWorX/ape-polygon",
5861
include_package_data=True,
5962
install_requires=[
60-
"eth-ape>=0.6.0,<0.7",
63+
"eth-ape>=0.7.0,<0.8",
64+
"ethpm-types", # Use same version as eth-ape
6165
],
6266
python_requires=">=3.8,<4",
6367
extras_require=extras_require,

tests/test_ecosystem.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def test_create_transaction(polygon, tx_type, eth_tester_provider):
2323
),
2424
)
2525
def test_encode_transaction(tx_type, polygon, eth_tester_provider):
26-
abi = MethodABI.parse_obj(
26+
abi = MethodABI.model_validate(
2727
{
2828
"type": "function",
2929
"name": "fooAndBar",

0 commit comments

Comments
 (0)