Repository navigation
Patched documentation for enabled Pylint messages - #1422
Open
angelayzheng wants to merge 8 commits into
Open
angelayzheng wants to merge 8 commits into
angelayzheng wants to merge 8 commits into
Conversation
Collaborator
Coverage Report for CI Build 40814905485Coverage remained the same at 91.587%Details
Uncovered ChangesNo uncovered changes found. Coverage RegressionsNo coverage regressions found. Coverage Stats
💛 - Coveralls |
david-yz-liu
left a comment
Contributor
There was a problem hiding this comment.
Thanks @angelayzheng! In response to your questions:
- I don't think there was a good reason for the previous errors to be omitted from the documentation
- adding the next test and fixture for the
unrecognized-inline-optioncheck is good
|
|
||
| This error occurs when an import alias is the same as the original package name. | ||
|
|
||
| ```{literalinclude} /../../../examples/pylint/c0414_useless_import_alias.py |
Contributor
There was a problem hiding this comment.
Add a corrected version of this example
|
|
||
|
|
||
| if __name__ == "__main__": | ||
| raise SystemExit(main()) |
Contributor
There was a problem hiding this comment.
it's a bit more idiomatic to use sys.exit instead of raising SystemExit
Member
Author
|
Thank you @david-yz-liu! I've addressed both of your comments in my new commits. |
angelayzheng
commented
Oct 29, 2026
| @@ -1,4 +1,3 @@ | |||
| """C0115: Missing class docstring.""" | |||
Member
Author
There was a problem hiding this comment.
I also removed this line (and the corresponding one for C0116) to be consistent with the rest of the example files, which do not state the error code and name at the top of the file.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Proposed Changes
We are currently missing documentation for 80 Pylint messages that are enabled and can be emitted by PythonTA.
C0114: missing-module-docstringC0115: missing-class-docstringC0116: missing-function-docstringC0303: trailing-whitespaceC0414: useless-import-aliasC1802: use-implicit-booleaness-not-lenC2401: non-ascii-nameC2403: non-ascii-module-importE0011: unrecognized-inline-optionE0013: bad-plugin-valuescripts/check_message_documentation.py), with instructions for running it in the script's docstring.E0011: unrecognized-inline-option, requires the optionallow_pylint_commentsto be enabled intest_examples.pyto correctly test its corresponding example file. Thus, an additional fixture and test have been added to test messages requiring this option.Screenshots of your changes (if applicable)
N/A
Type of Change
(Write an
Xor a brief description next to the type or types that best describe your changes.)Checklist
(Complete each of the following items for your pull request. Indicate that you have completed an item by changing the
[ ]into a[x]in the raw text, or by clicking on the checkbox in the rendered description on GitHub.)Before opening your pull request:
After opening your pull request:
Questions and Comments
allow-pylint-commentsoption enabled is required to properly test the example file forE0011: unrecognized-inline-option, but I know this could be considered out of scope compared to the rest of the PR (which has to do with simply updating documentation). Do you think this change should still be included as part of this PR?