Skip to content

Commit

Permalink
feat!: Handle 0.7 breaking changes and updates [APE-1550] (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
NotPeopling2day committed Dec 18, 2023
1 parent 5cab3cc commit 55c94f2
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 10 deletions.
1 change: 0 additions & 1 deletion .mdformat.toml

This file was deleted.

6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v4.5.0
hooks:
- id: check-yaml

Expand All @@ -10,7 +10,7 @@ repos:
- id: isort

- repo: https://github.com/psf/black
rev: 23.9.1
rev: 23.12.0
hooks:
- id: black
name: black
Expand All @@ -21,7 +21,7 @@ repos:
- id: flake8

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.5.1
rev: v1.7.1
hooks:
- id: mypy
additional_dependencies: [types-setuptools, pydantic]
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Expand Up @@ -37,3 +37,6 @@ force_grid_wrap = 0
include_trailing_comma = true
multi_line_output = 3
use_parentheses = true

[tool.mdformat]
number = true
14 changes: 9 additions & 5 deletions setup.py
Expand Up @@ -5,19 +5,22 @@
extras_require = {
"test": [ # `test` GitHub Action jobs uses this
"pytest>=6.0", # Core testing package
"pytest-xdist", # multi-process runner
"pytest-xdist", # Multi-process runner
"pytest-cov", # Coverage analyzer plugin
"hypothesis>=6.2.0,<7.0", # Strategy-based fuzzer
],
"lint": [
"black>=23.9.1,<24", # Auto-formatter and linter
"mypy>=1.5.1,<2", # Static type analyzer
"black>=23.12.0,<24", # Auto-formatter and linter
"mypy>=1.7.1,<2", # Static type analyzer
"types-setuptools", # Needed for mypy type shed
"flake8>=6.1.0,<7", # Style linter
"isort>=5.10.1", # Import sorting 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.10.1,<6", # Import sorting linter
"mdformat>=0.7.17", # 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
],
"release": [ # `release` GitHub Action job uses this
"setuptools", # Installation tool
Expand Down Expand Up @@ -57,7 +60,8 @@
url="https://github.com/ApeWorX/ape-avalanche",
include_package_data=True,
install_requires=[
"eth-ape>=0.6.7,<0.7.0",
"eth-ape>=0.7.0,<0.8.0",
"ethpm-types", # Use same version as eth-ape
],
python_requires=">=3.8,<4",
extras_require=extras_require,
Expand Down
2 changes: 1 addition & 1 deletion tests/test_ecosystem.py
Expand Up @@ -20,7 +20,7 @@ def test_create_transaction(avalanche, tx_type, eth_tester_provider):
(TransactionType.STATIC.value, TransactionType.DYNAMIC.value),
)
def test_encode_transaction(tx_type, avalanche, eth_tester_provider):
abi = MethodABI.parse_obj(
abi = MethodABI.model_validate(
{
"type": "function",
"name": "fooAndBar",
Expand Down

0 comments on commit 55c94f2

Please sign in to comment.