-
Notifications
You must be signed in to change notification settings - Fork 186
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
Use .pylintrc files #654
Use .pylintrc files #654
Conversation
Signed-off-by: Mark Cohen <markcoh@amazon.com>
…equires camel case instead of snake case Signed-off-by: Mark Cohen <markcoh@amazon.com>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #654 +/- ##
=======================================
Coverage 72.13% 72.13%
=======================================
Files 89 89
Lines 7945 7945
=======================================
Hits 5731 5731
Misses 2214 2214 ☔ View full report in Codecov by Sentry. |
@@ -102,7 +102,11 @@ def lint(session: Any) -> None: | |||
session.run("black", "--check", *SOURCE_FILES) | |||
session.run("flake8", *SOURCE_FILES) | |||
|
|||
lint_per_folder(session) | |||
pylint_overrides = ["opensearchpy/", "test_opensearchpy/"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of this find all .pylintrc files under first level subfolders and run those?
The one thing I don't like about this solution is that each .pylintrc stands on its own. There's no way to inherit the config from a higher level folder so if max-line-length should be 240 across the whole project, it needs to be in each .pylintrc. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A lot better.
Description
switches pylint to use .pylintrc configs instead of python generated pylint commands
Issues Resolved
#645
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.