Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ repos:
name: sync pre-commit dependencies

- repo: https://github.com/pdm-project/pdm
rev: 2.22.3
rev: 2.25.9
hooks:
- id: pdm-lock-check
name: check pdm lock file
Expand Down Expand Up @@ -72,7 +72,7 @@ repos:
name: apply walrus operator

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.9.3
rev: v0.14.2
hooks:
- id: ruff
name: lint code (ruff)
Expand All @@ -93,8 +93,8 @@ repos:
- types-requests
- types-setuptools
- types-protobuf
- pydantic==2.10.6
- pytest==8.3.4
- pydantic==2.12.3
- pytest==8.4.2

- repo: https://github.com/PyCQA/bandit
rev: 1.7.8
Expand Down
48 changes: 24 additions & 24 deletions pdm.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ classifiers = [
dependencies = [
# pinned dependencies
"httpx==0.27.2", # regression in 0.28, client.get(url, params) looses params directly in URL
"hishel==0.1.1", # too many breaking changes in recent versions
# unpinned dependencies
"pydantic>=2.8.2",
"eip712-clearsign>=4.1.0",
Expand All @@ -33,7 +34,6 @@ dependencies = [
"lark>=1.2.2",
"pydantic-string-url>=1.0.2",
"httpx-file>=0.2.0",
"hishel>=0.0.33",
"xdg-base-dirs>=6.0.2",
"limiter>=0.5.0",
"eth-abi>=5.1.0",
Expand Down
2 changes: 2 additions & 0 deletions src/erc7730/common/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
from erc7730.model.base import Model
from erc7730.model.types import Address

# ruff: noqa: UP047

ETHERSCAN = "api.etherscan.io"

_T = TypeVar("_T")
Expand Down
2 changes: 2 additions & 0 deletions src/erc7730/common/options.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
from typing_extensions import TypeVar

# ruff: noqa: UP047

_T = TypeVar("_T")


Expand Down
2 changes: 2 additions & 0 deletions src/erc7730/common/pydantic.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@

from erc7730.common.json import dict_to_json_file, dict_to_json_str, read_json_with_includes

# ruff: noqa: UP047

_BaseModel = TypeVar("_BaseModel", bound=BaseModel)


Expand Down
2 changes: 2 additions & 0 deletions src/erc7730/convert/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

from erc7730.common.output import OutputAdder

# ruff: noqa: UP046

InputType = TypeVar("InputType", bound=BaseModel)
OutputType = TypeVar("OutputType", bound=BaseModel)

Expand Down
2 changes: 2 additions & 0 deletions src/erc7730/lint/classifier/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
from erc7730.model.abi import ABI
from erc7730.model.context import EIP712Schema

# ruff: noqa: UP046


class TxClass(StrEnum):
STAKE = auto()
Expand Down
2 changes: 0 additions & 2 deletions src/erc7730/model/display.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
from erc7730.model.base import Model
from erc7730.model.types import Id

# ruff: noqa: N815 - camel case field names are tolerated to match schema


class FieldFormat(str, Enum):
"""
Expand Down
2 changes: 0 additions & 2 deletions src/erc7730/model/input/descriptor.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@
from erc7730.model.input.display import InputDisplay
from erc7730.model.input.metadata import InputMetadata

# ruff: noqa: N815 - camel case field names are tolerated to match schema


class InputERC7730Descriptor(Model):
"""
Expand Down
2 changes: 0 additions & 2 deletions src/erc7730/model/input/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
from erc7730.model.resolved.metadata import EnumDefinition
from erc7730.model.types import Id, ScalarType

# ruff: noqa: N815 - camel case field names are tolerated to match schema


class InputMetadata(Metadata):
"""
Expand Down
2 changes: 0 additions & 2 deletions src/erc7730/model/resolved/descriptor.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@
from erc7730.model.resolved.display import ResolvedDisplay
from erc7730.model.resolved.metadata import ResolvedMetadata

# ruff: noqa: N815 - camel case field names are tolerated to match schema


class ResolvedERC7730Descriptor(Model):
"""
Expand Down
2 changes: 0 additions & 2 deletions src/erc7730/model/resolved/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
from erc7730.model.metadata import EnumDefinition, Metadata
from erc7730.model.types import Id

# ruff: noqa: N815 - camel case field names are tolerated to match schema


class ResolvedMetadata(Metadata):
"""
Expand Down
Loading