samples directory now passes the missing-function-docstring linter (#640)
* updated files with docstrings to pass pylint Signed-off-by: Mark Cohen <[email protected]> * updated samples to prepare for enabling missing-docstring linter; will continue to work on this before committing setup.cfg Signed-off-by: Mark Cohen <[email protected]> * removed missing-function-docstring from setup.cfg so the linter doesn't fail while work on docstrings continues Signed-off-by: Mark Cohen <[email protected]> * corrected unnecessary return docstring values Signed-off-by: Mark Cohen <[email protected]> * fixing failure in 'black' on reformatting Signed-off-by: Mark Cohen <[email protected]> --------- Signed-off-by: Mark Cohen <[email protected]>
This commit is contained in:
@@ -17,6 +17,9 @@ from opensearchpy import OpenSearch
|
||||
|
||||
|
||||
def main() -> None:
|
||||
"""
|
||||
provides samples for different ways to handle documents including indexing, searching, updating, and deleting
|
||||
"""
|
||||
# Connect to OpenSearch
|
||||
client = OpenSearch(
|
||||
hosts=["https://localhost:9200"],
|
||||
|
||||
Reference in New Issue
Block a user