-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Add Pylint #465
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
Add Pylint #465
Conversation
Codecov Report
@@ Coverage Diff @@
## master #465 +/- ##
==========================================
+ Coverage 94% 94.13% +0.12%
==========================================
Files 57 57
Lines 4284 4259 -25
==========================================
- Hits 4027 4009 -18
+ Misses 257 250 -7
Continue to review full report at Codecov.
|
.pylintrc
Outdated
signature-differs | ||
|
||
|
||
|
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.
is the inconsistent number of newlines between sections intentional?
.pylintrc
Outdated
[TYPECHECK] | ||
# Tells whether missing members accessed in mixin class should be ignored. A | ||
# mixin class is detected if its name ends with "mixin" (case insensitive). | ||
#ignore-mixin-members=yes |
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.
is it worth keeping around these commented-out config lines?
.pylintrc
Outdated
#class-rgx=[A-Z_][a-zA-Z0-9]+$ | ||
# Regular expression which should only match correct function names | ||
# | ||
# |
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.
do we need these empty comment lines?
.pylintrc
Outdated
[LOGGING] | ||
# Apply logging string format checks to calls on these modules. | ||
logging-modules= | ||
logging |
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.
add a newline to the end of the file
CHANGELOG.rst
Outdated
@@ -2,6 +2,10 @@ | |||
CHANGELOG | |||
========= | |||
|
|||
1.14.1dev | |||
========= | |||
* bug-fix: rename MXNet argument from accelerators -> accelerator |
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.
- add a newline between ll. 6-7
- also don't you mean
distributions
->distribution
? - does this count as a breaking change?
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.
Yes and yes
src/sagemaker/estimator.py
Outdated
@@ -425,7 +410,7 @@ def _ensure_latest_training_job(self, error_message='Estimator is not associated | |||
|
|||
|
|||
class _TrainingJob(_Job): | |||
def __init__(self, sagemaker_session, training_job_name): | |||
def __init__(self, sagemaker_session, training_job_name): # pylint: disable=useless-super-delegation |
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.
why is this one important?
.pylintrc
Outdated
# Maximum number of lines in a module | ||
#max-module-lines=1000 | ||
# String used as indentation unit. This is usually " " (4 spaces) or "\t" (1 | ||
# tab). |
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.
do we really need to break the line on this comment?
This adds pylint to the build process - will fail for any Warning/Error on the main codebase. Tests are no included yet.
The handling of the MXNet distribution parameter was being done in Framework instead of MXNet. Pylint flagged this so this PR also fixes that. distributions is now also called distribution which is what was originally intended.
Issue #, if available:
Description of changes:
Merge Checklist
Put an
x
in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your pull request.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.