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

feat(framework) Add example docstring PyLint checker #4280

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

mohammadnaseri
Copy link
Contributor

This PR adds a new PyLint checker for enforcing example docstring.

@charlesbvll
Copy link
Member

@mohammadnaseri A few comments:

  • Could we move the plugin to dev/? I don't think we should have it in the root of the project
  • Currently, PyLint cannot import the plugin:
Command line or configuration file:1:0: E0013: Plugin 'pylint-custom-checkers.docstring_example_checker' is impossible to load, is it installed ? ('No module named 'pylint-custom-checkers'') (bad-plugin-value)
  • Lastly, I think we should ignore docstrings that only contain one line, as those correspond to non-public APIs

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