Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

thomasjpfan
Copy link
Member

This PR changes the logic of this to have an "ignore list". This way we can ensure that our docstrings are always validated once we fix the ones in DOCSTRING_IGNORE_LIST.

I see this as a sprint item where contributors can:

  1. Choose a estimator in DOCSTRING_IGNORE_LIST.
  2. Remove the estimator from the list.
  3. Run pytest maint_tools/test_docstrings.py -k SGDClassifier
  4. Fix errors.

CC @rth

Copy link
Member

@ogrisel ogrisel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea and LGTM.

Copy link
Member

@rth rth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @thomasjpfan !

@rth
Copy link
Member

rth commented Jun 20, 2021

Should we maybe do this as part of the lint job if it doesn't take too long?

@thomasjpfan
Copy link
Member Author

Should we maybe do this as part of the lint job if it doesn't take too long?

We can try to do this as a part of lint when numpydoc validation passes everywhere.

@rth
Copy link
Member

rth commented Jun 20, 2021

OK, that works.

@rth rth merged commit bb6117b into scikit-learn:main Jun 20, 2021
sakibguy added a commit to sakibguy/scikit-learn that referenced this pull request Jun 22, 2021
TST Enable numpydoc validation default (scikit-learn#20304)
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.

3 participants