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
6 changes: 5 additions & 1 deletion mypy.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,8 @@ disallow_untyped_defs = True
warn_unused_ignores = True
warn_unused_configs = True
warn_redundant_casts = True
ignore_missing_imports = True
ignore_missing_imports = True

# TODO(jtraglia): Remove these bandaids
no_implicit_optional = False
disable_error_code = empty-body
28 changes: 14 additions & 14 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[build-system]
requires = [
"marko==1.0.2",
"ruamel.yaml==0.17.21",
"setuptools==75.8.0",
"marko==2.1.2",
"ruamel.yaml==0.18.10",
"setuptools==78.0.2",
"wheel==0.45.1",
]

Expand All @@ -17,15 +17,15 @@ dependencies = [
"curdleproofs==0.1.2",
"eth-typing==5.2.0",
"eth-utils==5.2.0",
"lru-dict==1.2.0",
"marko==1.0.2",
"lru-dict==1.3.0",
"marko==2.1.2",
"milagro_bls_binding==1.9.0",
"py_arkworks_bls12381==0.3.8",
"py_ecc==7.0.1",
"pycryptodome==3.21.0",
"pycryptodome==3.22.0",
"remerkleable==0.1.28",
"ruamel.yaml==0.17.21",
"setuptools==75.8.0",
"ruamel.yaml==0.18.10",
"setuptools==78.0.2",
"trie==3.1.0",
]

Expand All @@ -36,20 +36,20 @@ test = [
"pytest==8.3.5",
]
lint = [
"codespell==2.4.0",
"flake8==5.0.4",
"mypy==0.981",
"codespell==2.4.1",
"flake8==7.1.2",
"mypy==1.15.0",
"pylint==3.3.6",
]
generator = [
"filelock==3.17.0",
"pathos==0.3.0",
"filelock==3.18.0",
"pathos==0.3.3",
"pytest==8.3.5",
"python-snappy==0.7.3",
]
docs = [
"mdx-truly-sane-lists==1.3",
"mkdocs-awesome-pages-plugin==2.10.1",
"mkdocs-material==9.1.5",
"mkdocs-material==9.6.9",
"mkdocs==1.6.1",
]
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def _load_curdleproofs_crs(preset_name):

@lru_cache(maxsize=None)
def _get_eth2_spec_comment(child: LinkRefDef) -> Optional[str]:
_, _, title = child._parse_info
title = child.title
if not (title[0] == "(" and title[len(title)-1] == ")"):
return None
title = title[1:len(title)-1]
Expand Down
6 changes: 3 additions & 3 deletions tests/generators/ssz_generic/ssz_container.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,9 @@ def valid_cases():

def mod_offset(b: bytes, offset_index: int, change: Callable[[int], int]):
return b[:offset_index] + \
(change(int.from_bytes(b[offset_index:offset_index + 4], byteorder='little')) & 0xffffffff) \
.to_bytes(length=4, byteorder='little') + \
b[offset_index + 4:]
(change(int.from_bytes(b[offset_index:offset_index + 4], byteorder='little')) & 0xffffffff) \
.to_bytes(length=4, byteorder='little') + \
b[offset_index + 4:]


def invalid_cases():
Expand Down