Clean up documentation in the HostingService class
Review Request #8913 — Created April 21, 2017 and submitted
This patch brings the rest of
hostingsvcs.service
into line with our
documentation practices, e.g., module docstrings, PEP 257, etc.
Built the docs and looked through them.
Description | From | Last Updated |
---|---|---|
Missing period. |
chipx86 | |
I'd say "The repository the key must be associated with." |
chipx86 | |
We're not adding the key. |
chipx86 | |
These are written more like: "An error occurred during communication with the hosting service." Same format below. |
chipx86 | |
These are only ignored in the default implementation. There's much more that's included (and that we should probably document and … |
chipx86 | |
I wouldn't say "if applicable." This should instead be elaborated on in the description. |
chipx86 | |
"from" |
chipx86 | |
Extra blank line. |
chipx86 | |
"The" We may want to use a numbered list for these. |
chipx86 | |
"Return" |
chipx86 | |
"Return" |
chipx86 | |
Should specify what this means. Otherwise it sounds like it's perhaps a database ID. It's actually specific to the hosting … |
chipx86 | |
"The provided plan is not valid for the hosting service." |
chipx86 | |
I wouldn't say "in question." Instead, something more like what get_bug_tracker_field has. |
chipx86 | |
No indentation. |
chipx86 | |
Same suggestion as earlier. |
chipx86 | |
This is missing a Returns block. |
chipx86 | |
Returns: section? |
david | |
Returns: section? I know that this implementation doesn't return, but it would be nice to list it so subclassers know … |
david | |
Raises? |
david | |
W293 blank line contains whitespace |
reviewbot | |
W293 blank line contains whitespace |
reviewbot | |
W293 blank line contains whitespace |
reviewbot | |
W293 blank line contains whitespace |
reviewbot | |
W293 blank line contains whitespace |
reviewbot | |
W293 blank line contains whitespace |
reviewbot | |
W293 blank line contains whitespace |
reviewbot |
- Diff:
-
Revision 2 (+279 -34)
Checks run (2 succeeded, 1 failed with error)
-
-
-
-
-
These are written more like: "An error occurred during communication with the hosting service."
Same format below.
-
These are only ignored in the default implementation. There's much more that's included (and that we should probably document and provide in the signature).
See the call to
hosting_service.check_repository
inreviewboard/scmtools/forms.py
. -
-
-
-
-
-
-
Should specify what this means. Otherwise it sounds like it's perhaps a database ID. It's actually specific to the hosting service in question, and should be opaque to the caller.
-
-
-
-
-
- Change Summary:
-
Addressed Christian's issues
- Diff:
-
Revision 3 (+292 -39)
Checks run (3 succeeded)
- Change Summary:
-
Correct return type of
get_change
- Diff:
-
Revision 4 (+289 -39)