flake8
-
djblets/webapi/resources/base.py (Diff revision 1) Show all issues
Review Request #13277 — Created Sept. 19, 2023 and submitted
WebAPIResource
is a very old and complex part of our codebase, and
lacked any form of modern documentation. This made it more difficult to
iterate on, and with some upcoming work planned for this, it was time to
address this problem.This change adds documentation to all the methods in the class, and sets
the stage for those upcoming changes.
Unit tests pass.
Built the docs. Verified there were no new errors in this module.
Summary | ID |
---|---|
aaa6b7f59ff7249c35e60a2fbf893fadb705e6fb |
Description | From | Last Updated |
---|---|---|
Typo in summary: documnentation |
|
|
SyntaxError: invalid syntax Column: 9 Error code: E999 |
![]() |
|
Can get rid of "Return" and just say "The plural name ..." like you did with the other docs. |
![]() |
|
While you're here could you get rid of "Returns". |
![]() |
|
While you're here could you get rid of "Returns". |
![]() |
|
This should be removed, there is no specific object for list resources. |
![]() |
|
This should say HTTP DELETE instead of POST. |
![]() |
|
This should be "name" instead of "name_plural". |
![]() |
|
Missing a leading underscore in the method name. |
![]() |
|
Remove this line. |
![]() |
|
Not sure if the word "included" should be here. Maybe this was meant to say "if included"? |
![]() |
|
"optional" was written twice. |
![]() |
ad Fixed a missing line from a bad
git add -p
.
Commits: |
|
|||||||
---|---|---|---|---|---|---|---|---|
Diff: |
Revision 2 (+1684 -216) |
djblets/webapi/resources/base.py (Diff revision 2) |
---|
Can get rid of "Return" and just say "The plural name ..." like you did with the other docs.
djblets/webapi/resources/base.py (Diff revision 2) |
---|
While you're here could you get rid of "Returns".
djblets/webapi/resources/base.py (Diff revision 2) |
---|
While you're here could you get rid of "Returns".
djblets/webapi/resources/base.py (Diff revision 2) |
---|
This should be removed, there is no specific object for list resources.
djblets/webapi/resources/base.py (Diff revision 2) |
---|
Not sure if the word "included" should be here. Maybe this was meant to say "if included"?
Fixed typos and all reported issues in the docs.
Summary: |
|
|||||||
---|---|---|---|---|---|---|---|---|
Commits: |
|
|||||||
Diff: |
Revision 3 (+1682 -220) |
djblets/webapi/resources/base.py (Diff revisions 2 - 3) |
---|
Missing a leading underscore in the method name.
Fixed a missing
_
in a method name reference.
Commits: |
|
|||||||
---|---|---|---|---|---|---|---|---|
Diff: |
Revision 4 (+1682 -220) |