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

Expanded type coverage to benchmarks, samples and tests. #566

Merged
merged 9 commits into from
Nov 9, 2023

Conversation

dblock
Copy link
Member

@dblock dblock commented Nov 7, 2023

Description

Expanded type coverage to benchmarks, samples and tests.

Issues Resolved

Closes #564.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: dblock <dblock@amazon.com>
Signed-off-by: dblock <dblock@amazon.com>
Signed-off-by: dblock <dblock@amazon.com>
Signed-off-by: dblock <dblock@amazon.com>
Copy link

codecov bot commented Nov 7, 2023

Codecov Report

Merging #566 (e9baa62) into main (dcb79cc) will decrease coverage by 0.01%.
The diff coverage is 73.33%.

@@            Coverage Diff             @@
##             main     #566      +/-   ##
==========================================
- Coverage   71.69%   71.69%   -0.01%     
==========================================
  Files          87       87              
  Lines        7875     7881       +6     
==========================================
+ Hits         5646     5650       +4     
- Misses       2229     2231       +2     
Files Coverage Δ
opensearchpy/__init__.py 100.00% <ø> (ø)
opensearchpy/_async/helpers/document.py 57.38% <100.00%> (ø)
opensearchpy/_async/helpers/index.py 60.80% <100.00%> (ø)
opensearchpy/_async/http_aiohttp.py 83.33% <100.00%> (ø)
opensearchpy/connection/async_connections.py 95.91% <100.00%> (+0.17%) ⬆️
opensearchpy/connection_pool.py 89.74% <100.00%> (ø)
opensearchpy/helpers/actions.py 44.22% <ø> (ø)
opensearchpy/helpers/asyncsigner.py 95.65% <100.00%> (ø)
opensearchpy/helpers/field.py 93.37% <100.00%> (ø)
opensearchpy/helpers/index.py 64.50% <100.00%> (ø)
... and 6 more

@dblock dblock force-pushed the rest-of-mypy branch 2 times, most recently from 361e3b2 to e38d83e Compare November 7, 2023 17:05
Signed-off-by: dblock <dblock@amazon.com>
Signed-off-by: dblock <dblock@amazon.com>
Signed-off-by: dblock <dblock@amazon.com>
Signed-off-by: dblock <dblock@amazon.com>
@dblock
Copy link
Member Author

dblock commented Nov 7, 2023

@saimedhi I think this is 🟢

Copy link
Collaborator

@VachaShah VachaShah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dblock
Copy link
Member Author

dblock commented Nov 7, 2023

@saimedhi good with you? (pls hit merge if yes)

@dblock
Copy link
Member Author

dblock commented Nov 9, 2023

I think @saimedhi is OOO, will merge (please add more comments and I can take of them later if needed), thanks @VachaShah for a CR.

@dblock dblock merged commit 56c96d7 into opensearch-project:main Nov 9, 2023
60 of 61 checks passed
@dblock dblock deleted the rest-of-mypy branch November 9, 2023 15:51
roma2023 pushed a commit to roma2023/opensearch-py that referenced this pull request Dec 28, 2023
…project#566)

* Renamed json samples to fix duplicate module name.

Signed-off-by: dblock <dblock@amazon.com>

* Enabled mypy on all source files.

Signed-off-by: dblock <dblock@amazon.com>

* Added missing types.

Signed-off-by: dblock <dblock@amazon.com>

* Added CHANGELOG.

Signed-off-by: dblock <dblock@amazon.com>

* Move type: ignore to fix untyped decorator makes function untyped.

Signed-off-by: dblock <dblock@amazon.com>

* Fix nox -rs lint-3.7.

Signed-off-by: dblock <dblock@amazon.com>

* Fixed incorrect import.

Signed-off-by: dblock <dblock@amazon.com>

* Fix broken test.

Signed-off-by: dblock <dblock@amazon.com>

* Fixed TestBulk::test_bulk_works_with_bytestring_body.

Signed-off-by: dblock <dblock@amazon.com>

---------

Signed-off-by: dblock <dblock@amazon.com>
Signed-off-by: roma2023 <romasaparhan19@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEATURE] Add mypy coverage outside fo opensearchpy/*
2 participants