-
Notifications
You must be signed in to change notification settings - Fork 665
TEST-#2966: add script for testing docs #2968
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
TEST-#2966: add script for testing docs #2968
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2968 +/- ##
===========================================
- Coverage 82.10% 65.20% -16.90%
===========================================
Files 132 132
Lines 14586 14635 +49
===========================================
- Hits 11976 9543 -2433
- Misses 2610 5092 +2482
Continue to review full report at Codecov.
|
Signed-off-by: Anatoly Myachev <anatoly.myachev@intel.com>
d28fc74
to
594c3d5
Compare
There's a challenge with testing documentation of the objects to which decorators are applied. |
Signed-off-by: Anatoly Myachev <anatoly.myachev@intel.com>
Signed-off-by: Anatoly Myachev <anatoly.myachev@intel.com>
Signed-off-by: Anatoly Myachev <anatoly.myachev@intel.com>
Signed-off-by: Anatoly Myachev <anatoly.myachev@intel.com>
Signed-off-by: Anatoly Myachev <anatoly.myachev@intel.com>
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 not change docstrings here, just enable the tests for only those files which already pass the check.
Signed-off-by: Anatoly Myachev <anatoly.myachev@intel.com>
Signed-off-by: Anatoly Myachev <anatoly.myachev@intel.com>
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.
Some afterthoughts about not installing modin
to check docs
Signed-off-by: Anatoly Myachev <anatoly.myachev@intel.com>
Co-authored-by: Vasily Litvinov <vasilij.n.litvinov@intel.com> Signed-off-by: Anatoly Myachev <anatoly.myachev@intel.com>
Signed-off-by: Anatoly Myachev <anatoly.myachev@intel.com>
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.
LGTM!
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.
LGTM
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.
thanks @anmyachev, LGTM!
Signed-off-by: Anatoly Myachev <anatoly.myachev@intel.com>
aa60661
…init__.py Signed-off-by: Anatoly Myachev <anatoly.myachev@intel.com>
Signed-off-by: Anatoly Myachev <anatoly.myachev@intel.com>
… 'XGBoost' Signed-off-by: Anatoly Myachev <anatoly.myachev@intel.com>
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.
Minor, easy to fix. Hence flagging "approval".
c8b0df1
Co-authored-by: Vasily Litvinov <vasilij.n.litvinov@intel.com> Signed-off-by: Anatoly Myachev <anatoly.myachev@intel.com>
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.
LGTM
scripts/doc_checker.py
Outdated
if is_public_func(node) | ||
] | ||
|
||
logging.info(f"NUMPYDOC OUTPUT FOR {current_path} - CAN BE EMPTY") |
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.
As for me, output like
INFO:NUMPYDOC OUTPUT FOR example.py CAN BE EMPTY
confuses me a little. I would prefer something like this:
INFO:NUMPYDOC CHECK FOR example.py SUCCESSFUL
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.
Now the message appears only in case of an error.
Example:
INFO:PYDOCSTYLE OUTPUT FOR scripts\doc_checker.py
ERROR:scripts\doc_checker.py:341 in public function `numpydoc_validate`:
D103: Missing docstring in public function
INFO:NUMPYDOC OUTPUT FOR scripts\doc_checker.py
ERROR:scripts.doc_checker.numpydoc_validate:341:GL08:The object does not have a docstring
ERROR:scripts.doc_checker.pydocstyle_validate:397:PR01:Parameters {'add_ignore'} not documented
ERROR:scripts.doc_checker.pydocstyle_validate:397:PR02:Unknown parameters {'add_ignore: List[int]'}
ERROR:scripts.doc_checker.pydocstyle_validate:397:PR10:Parameter "add_ignore" requires a space before the colon separating the parameter name and type
ERROR:INVALID DOCUMENTATION FOUND
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.
@devin-petersohn now the script output is like this, see above.
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.
Looks great!
Signed-off-by: Anatoly Myachev <anatoly.myachev@intel.com>
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.
Thanks @anmyachev, looks great!
Signed-off-by: Anatoly Myachev anatoly.myachev@intel.com
What do these changes do?
flake8 modin
black --check modin
git commit -s