Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dev deps and add new mypy check #497

Merged
merged 3 commits into from
Aug 1, 2019
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
11 changes: 5 additions & 6 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ wheel>=0.30.0
watchdog>=0.8.3
twine

flake8==3.6.0
flake8==3.7.8
flake8-bugbear==19.3.0
flake8-tuple==0.2.14
isort==4.3.18
mypy==0.701
flake8-tuple==0.4.0
isort==4.3.21
mypy==0.720
black==19.3b0
pylint==2.3.1

pytest==4.4.1
pytest==5.0.1
pytest-runner
pytest-cov
pytest-structlog==0.1
Expand All @@ -26,7 +26,6 @@ ipython==4.2.1
pdbpp

eth-tester[py-evm]==0.1.0b33
attrs==18.2.0 # needed for travis

# Release
bump2version==0.5.10
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ check_untyped_defs = True
disallow_untyped_defs = True
warn_unused_configs = True
warn_unused_ignores = True
warn_unreachable = True

[mypy-tests.*]
disallow_untyped_defs = False
3 changes: 1 addition & 2 deletions src/monitoring_service/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -490,8 +490,7 @@ def action_claim_reward_triggered_event_handler(event: Event, context: Context)

# check that the latest update was ours and that we didn't send a transaction yet
can_claim = (
channel is not None
and channel.claim_tx_hash is None
channel.claim_tx_hash is None
Dominik1999 marked this conversation as resolved.
Show resolved Hide resolved
and channel.update_status is not None
and channel.update_status.update_sender_address == context.ms_state.address
)
Expand Down
4 changes: 3 additions & 1 deletion src/raiden_libs/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ def _open_keystore(keystore_file: str, password: str) -> str:
sys.exit(1)


def validate_address(_ctx: click.Context, _param: click.Parameter, value: str) -> Optional[str]:
def validate_address(
_ctx: click.Context, _param: click.Parameter, value: Optional[str]
) -> Optional[str]:
if value is None:
# None as default value allowed
return None
Expand Down