Add pydocstyle tool to Review Bot
Review Request #10197 — Created Oct. 4, 2018 and submitted
Users can now configure Review Bot to run pydocstyle, a tool for checking
compliance with Python docstring conventions.Pydocstyle is not added to the install requires list and users will
need to manually install it to use it.Pydocstyle defaults to using the PEP 257 docstring convention but users
can add a list of errors to ignore which will override the convention.
Tested dependency check by running reviewbot worker command without
pydocstyle installedTested pydocstyle by adding new configuration to Review Bot integration
and publishing a review. Also tested with errors added to ignore list.
Description | From | Last Updated |
---|---|---|
In your summary and description, "ReviewBot" -> "Review Bot" |
david | |
We also need to add documentation for the pydocstyle tool. |
david | |
E501 line too long (88 > 79 characters) |
reviewbot | |
E501 line too long (84 > 79 characters) |
reviewbot | |
E501 line too long (85 > 79 characters) |
reviewbot | |
E226 missing whitespace around arithmetic operator |
reviewbot | |
F401 'reviewbot.processing.review.File' imported but unused |
reviewbot | |
F401 'reviewbot.processing.review.Review' imported but unused |
reviewbot | |
F401 'rbtools.api.resource.Resource' imported but unused |
reviewbot | |
F401 'pydocstyle' imported but unused |
reviewbot | |
E302 expected 2 blank lines, found 1 |
reviewbot | |
W391 blank line at end of file |
reviewbot | |
E302 expected 2 blank lines, found 1 |
reviewbot | |
Can you add a module-level docstring describing what the file is/does? |
brennie | |
"PEP 257" |
brennie | |
This patch should build upon your previous patch and add pydocstyle to the all extra_requires section. |
brennie | |
Alphabetical order. |
brennie | |
Please use single quotes instead of double. |
david | |
Please use single quotes instead of double here. |
david | |
This is rst, which has a somewhat different markup for code formatting than markdown. This should probably be: :command:`pydocstyle` can … |
david | |
I don't believe these lines are needed here, only the (duplicated) docstring under your class PydocstyleTool on line 9. |
gojeffcho | |
Should this be looking for something a little more specific than the broad Exception class? |
gojeffcho |
- Summary:
-
[WIP] Adding pydocstyle tool to ReviewBot and testingAdd pydocstyle tool to ReviewBot
- Description:
-
~ [WIP] Adding pydocstyle tool to ReviewBot and testing
~ Users can now configure ReviewBot to run pydocstyle, a tool for checking
+ compliance with Python docstring conventions. ~ - Added pydocstyle tool to setup and implementation
~ -
Tested tool manually
~ -
Created runtests.py for ReviewBot (which is similar to the other packages)
~ - Working on creating unit tests for pydocstyletool
~ Pydocstyle is not added to the install requires list and users will
~ need to manually install it to use it. ~ ~ Pydocstyle defaults to using the PEP 257 docstring convention but users
+ can add a list of errors to ignore which will override the convention. - Testing Done:
-
+ Tested dependency check by running reviewbot worker command without
+ pydocstyle installed + + Tested pydocstyle by adding new configuration to ReviewBot integration
+ and publishing a review. Also tested with errors added to ignore list. - Commit:
-
85e05234119d6d003668e1930f2c59cdc6e0d74a422c783bd814e8c2185bac26595a559f25182580
Checks run (2 succeeded)
- Commit:
-
422c783bd814e8c2185bac26595a559f25182580342715177b87d03f7e2d8eb89ac5af06801d1e56
Checks run (2 succeeded)
- Commit:
-
342715177b87d03f7e2d8eb89ac5af06801d1e560761b0addc23a176e38b516d82e111afb603bcca
Checks run (2 succeeded)
- Commit:
-
0761b0addc23a176e38b516d82e111afb603bccaa89490291324d1e4650eceeb8676140a769ab029
Checks run (2 succeeded)
- Summary:
-
Add pydocstyle tool to ReviewBotAdd pydocstyle tool to Review Bot
- Description:
-
~ Users can now configure ReviewBot to run pydocstyle, a tool for checking
~ Users can now configure Review Bot to run pydocstyle, a tool for checking
compliance with Python docstring conventions. Pydocstyle is not added to the install requires list and users will
need to manually install it to use it. Pydocstyle defaults to using the PEP 257 docstring convention but users
can add a list of errors to ignore which will override the convention. - Testing Done:
-
Tested dependency check by running reviewbot worker command without
pydocstyle installed ~ Tested pydocstyle by adding new configuration to ReviewBot integration
~ Tested pydocstyle by adding new configuration to Review Bot integration
and publishing a review. Also tested with errors added to ignore list. - Commit:
-
a89490291324d1e4650eceeb8676140a769ab02901535fc6a0d209e02dc0df75d64e6ba7dc72aa83
Checks run (2 succeeded)
-
-
This is rst, which has a somewhat different markup for code formatting than markdown. This should probably be:
:command:`pydocstyle` can be installed on most systems by running:: $ pip install pydocstyle
I notice now that the earlier changes made this same mistake, so I'll fix up the ones that are already in the tree.
- Commit:
-
01535fc6a0d209e02dc0df75d64e6ba7dc72aa83738b16075bf5157c06e46cbda2b3e094091cec42