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

Added pylint, enforce naming. #590

Merged
merged 4 commits into from
Nov 21, 2023
Merged

Conversation

dblock
Copy link
Member

@dblock dblock commented Nov 15, 2023

Description

  • Added pylint, and enforce pylint line-too-long and invalid-name.
  • Updated the generated code header to avoid a broken link to the generate code API file that was renamed, and replaced the last line with one that ends with + to make it clear what the generate api code is looking for. It was working because it has one more - than the first line.

Issues Resolved

List any issues this PR will resolve, e.g. Closes [...].

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.

@dblock dblock force-pushed the pylint branch 2 times, most recently from c669c43 to 7e29c24 Compare November 15, 2023 21:18
Copy link

codecov bot commented Nov 15, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (cfd585b) 71.98% compared to head (8eb65e2) 71.98%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #590   +/-   ##
=======================================
  Coverage   71.98%   71.98%           
=======================================
  Files          89       89           
  Lines        7934     7935    +1     
=======================================
+ Hits         5711     5712    +1     
  Misses       2223     2223           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it 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>
@dblock
Copy link
Member Author

dblock commented Nov 21, 2023

@saimedhi Can we get this in?

@saimedhi
Copy link
Collaborator

@saimedhi Can we get this in?

@dblock, Sorry for the delay. Just checking all the files once.

@saimedhi saimedhi merged commit 1801ada into opensearch-project:main Nov 21, 2023
56 checks passed
@dblock dblock deleted the pylint branch November 21, 2023 18:29
roma2023 pushed a commit to roma2023/opensearch-py that referenced this pull request Dec 28, 2023
* Added pylint.

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

* Enforce pylint:invalid-name.

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

* Updated the generated code header to prevent broken links.

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

* Swapped order of messages.

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.

2 participants