Skip to content

Commit

Permalink
Update dev requirements for python3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
cyc60 committed Sep 27, 2022
1 parent acffe74 commit 0ff50d5
Show file tree
Hide file tree
Showing 7 changed files with 405 additions and 232 deletions.
4 changes: 4 additions & 0 deletions .mypy.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,13 @@ plugins = pydantic.mypy,sqlmypy
strict = True
allow_untyped_calls=True
warn_return_any=False
disallow_untyped_decorators=False

[mypy-eth2deposit.*]
ignore_missing_imports = True

[mypy-click.*]
ignore_missing_imports = True

[mypy-test.*]
ignore_errors = True
2 changes: 1 addition & 1 deletion cli/create_horcrux.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def create_horcrux() -> None:
display_private_key = click.prompt(
"Display the horcrux private key (e.g. to write it down)",
type=click.BOOL,
default=False, # type: ignore
default=False,
)
if display_private_key:
base64_horcrux_key = b64encode(
Expand Down
2 changes: 1 addition & 1 deletion cli/crypto.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def create_from_private_key(
def create_from_json(cls, json_dict: Dict[Any, Any]) -> HorcruxPbkdf2Keystore:
parent_keystore = super().from_json(json_dict)
# Ignored because mypy fails to detect parent dataclass keyword arguments
return cls( # type: ignore
return cls(
index=json_dict["index"],
threshold=json_dict["threshold"],
shared_public_key=json_dict["shared_public_key"],
Expand Down
5 changes: 3 additions & 2 deletions requirements/dev.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
pip-tools==5.5.0
black==20.8b1
black==21.10b0
flake8==3.8.4
mypy==0.790
mypy==0.981
sqlalchemy-stubs==0.3
types-requests==2.28.11
pytest==6.*
pytest-cov==2.*
369 changes: 193 additions & 176 deletions requirements/dev.txt

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion requirements/prod.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ eth-typing==2.2.2
fastapi==0.63.0
py-ecc==5.1.0
pycryptodome==3.9.9
pydantic==1.7.3
pydantic==1.9.1
requests==2.25.1
SQLAlchemy==1.3.22
uvicorn==0.13.3
Expand Down
253 changes: 202 additions & 51 deletions requirements/prod.txt

Large diffs are not rendered by default.

0 comments on commit 0ff50d5

Please sign in to comment.