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

refactor(mypy): add stricter rules to p2p tests [part IV/VI] #973

Merged
merged 1 commit into from
Mar 22, 2024

Conversation

glevco
Copy link
Contributor

@glevco glevco commented Mar 14, 2024

Depends on #972

Motivation

This PR continues to improve the strictness of mypy in test modules. For more info see the first PR in this series, #969.

Acceptance Criteria

  • Add stricter mypy rules to tests.p2p module and update it to conform.

Checklist

  • If you are requesting a merge into master, confirm this code is production-ready and can be included in future releases as soon as it gets merged

@glevco glevco self-assigned this Mar 14, 2024
@glevco glevco force-pushed the refactor/strict-mypy-3 branch from ce34601 to 21bdd94 Compare March 14, 2024 16:42
@glevco glevco force-pushed the refactor/strict-mypy-4 branch from bb8ad15 to 5318232 Compare March 14, 2024 16:45
@glevco glevco force-pushed the refactor/strict-mypy-3 branch from 21bdd94 to 6e1595f Compare March 14, 2024 16:54
@glevco glevco force-pushed the refactor/strict-mypy-4 branch from 5318232 to 5235577 Compare March 14, 2024 16:58
Copy link

codecov bot commented Mar 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.10%. Comparing base (74b7251) to head (b42aa67).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #973      +/-   ##
==========================================
+ Coverage   85.06%   85.10%   +0.04%     
==========================================
  Files         294      294              
  Lines       22800    22801       +1     
  Branches     3435     3435              
==========================================
+ Hits        19394    19405      +11     
+ Misses       2720     2713       -7     
+ Partials      686      683       -3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@glevco glevco changed the title refactor(mypy): add stricter rules to p2p tests refactor(mypy): add stricter rules to p2p tests [part IV/VI] Mar 14, 2024
@glevco glevco marked this pull request as ready for review March 19, 2024 01:34
@glevco glevco force-pushed the refactor/strict-mypy-4 branch from 5235577 to ef291c0 Compare March 19, 2024 01:45
msbrogli
msbrogli previously approved these changes Mar 19, 2024
tests/p2p/test_double_spending.py Show resolved Hide resolved
tests/p2p/test_get_best_blockchain.py Show resolved Hide resolved
tests/p2p/test_peer_id.py Show resolved Hide resolved
tests/p2p/test_protocol.py Show resolved Hide resolved
tests/p2p/test_protocol.py Show resolved Hide resolved
tests/p2p/test_split_brain.py Show resolved Hide resolved
tests/p2p/test_split_brain.py Show resolved Hide resolved
tests/p2p/test_split_brain.py Show resolved Hide resolved
tests/p2p/test_split_brain.py Show resolved Hide resolved
tests/p2p/test_split_brain.py Show resolved Hide resolved
@glevco glevco force-pushed the refactor/strict-mypy-3 branch from 6e1595f to 2bea84c Compare March 19, 2024 18:51
@glevco glevco force-pushed the refactor/strict-mypy-4 branch from ef291c0 to 1a1d5c8 Compare March 19, 2024 18:51
hathor/builder/builder.py Outdated Show resolved Hide resolved
@glevco glevco force-pushed the refactor/strict-mypy-3 branch from 2bea84c to 639d981 Compare March 20, 2024 02:26
@glevco glevco force-pushed the refactor/strict-mypy-4 branch from 1a1d5c8 to 59fb234 Compare March 20, 2024 02:30
@glevco glevco force-pushed the refactor/strict-mypy-3 branch from 639d981 to 5b95253 Compare March 20, 2024 15:38
Base automatically changed from refactor/strict-mypy-3 to master March 20, 2024 18:26
@glevco glevco dismissed msbrogli’s stale review March 20, 2024 18:26

The base branch was changed.

@glevco glevco force-pushed the refactor/strict-mypy-4 branch from 1f362af to 20d492d Compare March 20, 2024 18:30
jansegre
jansegre previously approved these changes Mar 20, 2024
tests/p2p/test_get_best_blockchain.py Show resolved Hide resolved
@glevco glevco force-pushed the refactor/strict-mypy-4 branch from 20a973d to b42aa67 Compare March 22, 2024 01:24
@glevco glevco merged commit 443604f into master Mar 22, 2024
12 checks passed
@glevco glevco deleted the refactor/strict-mypy-4 branch March 22, 2024 15:57
@jansegre jansegre mentioned this pull request Apr 5, 2024
2 tasks
@jansegre jansegre mentioned this pull request May 8, 2024
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants