Adding Review Commands
Review Request #11502 — Created March 3, 2021 and discarded
We'd like to add a new command to RBTools for performing reviews, which
itself would actually be several commands. This might be useful for some
users who are super heavy command-line users, and would definitely be
useful for people who want to add automation of various sorts (such as
adding reviews after running custom CI tools that we don't have
integrations for). This review request is dependent upon the JSON output object from r#11521.
Manually tested all commands so far and documented on Notion. Also added and ran new tests in rbtools/commands/tests/test_review.py.
Summary | ID | Author |
---|---|---|
71326e2dc6bc97a01030de44affe588b9f21a7e1 | anahita-m | |
195de49d5a5ce6b1979556f85ed9b31b0e7da06a | anahita-m | |
3c36f63b5ae8e656f55c01d0ce335bf119e9a61b | anahita-m | |
5f802fb4a6be325044800fb4cf7d757314dde9ac | anahita-m | |
d064c6470393a840b48132175529c84efe9be196 | anahita-m | |
7b70b35e7fed9cb97c0219d277d3d91270d6e95f | anahita-m | |
5ec4fdc3608d67ab2698ed0cf94684b06170171b | anahita-m | |
84c9bc49e456170fc573aae84d1d9289363d6640 | anahita-m | |
d04c4bc18e0c5cd2b3f3e175a9832bcd66603c26 | anahita-m | |
d1fb4c9b4a2ac41622e2d069dbc1df728af79b54 | anahita-m | |
4f7bb7547af17cd64280cf65f701139cf5e0e446 | anahita-m | |
1e5f3c0a3e1dab8ba83e98dfe756d37ef46841ea | anahita-m | |
8401d70d9ff2f9c17ebe5d472fa85e950da12b4d | anahita-m | |
81c91d321e6acdb7f74d7a58d1fd478f946c38c9 | anahita-m | |
74be2931d947a5d9865b4ad05809ad49d6c1215d | anahita-m | |
58144e4a1a4e56ead9cf04785aef9511546373ce | anahita-m |
Description | From | Last Updated |
---|---|---|
testComment1 |
amohapatra | |
F401 'rbtools.commands.Option' imported but unused |
reviewbot | |
F401 'rbtools.utils.review_request.get_revisions' imported but unused |
reviewbot | |
F401 'rbtools.utils.review_request.guess_existing_review_request' imported but unused |
reviewbot | |
F401 'rbtools.utils.review_request.get_draft_or_current_value' imported but unused |
reviewbot | |
E302 expected 2 blank lines, found 0 |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E501 line too long (84 > 79 characters) |
reviewbot | |
F841 local variable 'review' is assigned to but never used |
reviewbot | |
F821 undefined name 'e' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E225 missing whitespace around operator |
reviewbot | |
E501 line too long (106 > 79 characters) |
reviewbot | |
E501 line too long (80 > 79 characters) |
reviewbot | |
W293 blank line contains whitespace |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E122 continuation line missing indentation or outdented |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
W292 no newline at end of file |
reviewbot | |
F401 'rbtools.commands.Option' imported but unused |
reviewbot | |
F401 'rbtools.utils.review_request.get_revisions' imported but unused |
reviewbot | |
F401 'rbtools.utils.review_request.guess_existing_review_request' imported but unused |
reviewbot | |
F401 'rbtools.utils.review_request.get_draft_or_current_value' imported but unused |
reviewbot | |
E302 expected 2 blank lines, found 0 |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
F841 local variable 'review' is assigned to but never used |
reviewbot | |
E501 line too long (84 > 79 characters) |
reviewbot | |
E501 line too long (106 > 79 characters) |
reviewbot | |
E225 missing whitespace around operator |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
F821 undefined name 'e' |
reviewbot | |
E501 line too long (80 > 79 characters) |
reviewbot | |
W293 blank line contains whitespace |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E122 continuation line missing indentation or outdented |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
W292 no newline at end of file |
reviewbot | |
E501 line too long (84 > 79 characters) |
reviewbot | |
E127 continuation line over-indented for visual indent |
reviewbot | |
E127 continuation line over-indented for visual indent |
reviewbot | |
E127 continuation line over-indented for visual indent |
reviewbot | |
E127 continuation line over-indented for visual indent |
reviewbot | |
E127 continuation line over-indented for visual indent |
reviewbot | |
E303 too many blank lines (2) |
reviewbot | |
E501 line too long (82 > 79 characters) |
reviewbot | |
E127 continuation line over-indented for visual indent |
reviewbot | |
E127 continuation line over-indented for visual indent |
reviewbot | |
E127 continuation line over-indented for visual indent |
reviewbot | |
E127 continuation line over-indented for visual indent |
reviewbot | |
E127 continuation line over-indented for visual indent |
reviewbot | |
E251 unexpected spaces around keyword / parameter equals |
reviewbot | |
W291 trailing whitespace |
reviewbot | |
F841 local variable 'review_draft' is assigned to but never used |
reviewbot | |
F841 local variable 'e' is assigned to but never used |
reviewbot | |
F841 local variable 'e' is assigned to but never used |
reviewbot | |
F841 local variable 'review_draft' is assigned to but never used |
reviewbot | |
F841 local variable 'e' is assigned to but never used |
reviewbot | |
E303 too many blank lines (4) |
reviewbot | |
W291 trailing whitespace |
reviewbot | |
F841 local variable 'e' is assigned to but never used |
reviewbot | |
F841 local variable 'e' is assigned to but never used |
reviewbot | |
F841 local variable 'review' is assigned to but never used |
reviewbot | |
F841 local variable 'e' is assigned to but never used |
reviewbot | |
E501 line too long (85 > 79 characters) |
reviewbot | |
E501 line too long (120 > 79 characters) |
reviewbot | |
F841 local variable 'e' is assigned to but never used |
reviewbot | |
E501 line too long (80 > 79 characters) |
reviewbot | |
E501 line too long (85 > 79 characters) |
reviewbot | |
E225 missing whitespace around operator |
reviewbot | |
E225 missing whitespace around operator |
reviewbot | |
E225 missing whitespace around operator |
reviewbot | |
E225 missing whitespace around operator |
reviewbot | |
E225 missing whitespace around operator |
reviewbot | |
E501 line too long (80 > 79 characters) |
reviewbot | |
E501 line too long (94 > 79 characters) |
reviewbot | |
E501 line too long (81 > 79 characters) |
reviewbot | |
E501 line too long (84 > 79 characters) |
reviewbot | |
E501 line too long (90 > 79 characters) |
reviewbot | |
E251 unexpected spaces around keyword / parameter equals |
reviewbot | |
E251 unexpected spaces around keyword / parameter equals |
reviewbot | |
E501 line too long (98 > 79 characters) |
reviewbot | |
E501 line too long (84 > 79 characters) |
reviewbot | |
E501 line too long (83 > 79 characters) |
reviewbot | |
E501 line too long (80 > 79 characters) |
reviewbot | |
E128 continuation line under-indented for visual indent |
reviewbot | |
E722 do not use bare except' |
reviewbot | |
E128 continuation line under-indented for visual indent |
reviewbot | |
E128 continuation line under-indented for visual indent |
reviewbot | |
E722 do not use bare except' |
reviewbot | |
E225 missing whitespace around operator |
reviewbot | |
E501 line too long (80 > 79 characters) |
reviewbot | |
E225 missing whitespace around operator |
reviewbot | |
E501 line too long (80 > 79 characters) |
reviewbot | |
E999 IndentationError: expected an indented block |
reviewbot | |
E112 expected an indented block |
reviewbot | |
E113 unexpected indentation |
reviewbot | |
W291 trailing whitespace |
reviewbot | |
E128 continuation line under-indented for visual indent |
reviewbot | |
This should be in sentence case. But even better would be to use option groups to keep things together. See … |
david | |
When we include short options, we only do single characters. Given how rare it is to set a review footer, … |
david | |
Maybe -h here? |
david | |
These two options are for all types of comments, not just general comments. |
david | |
Help text should be in sentence case. This should probably also mention that if not specified, the comment will cover … |
david | |
I don't think this one needs a short option. |
david | |
If we don't use -f for file attachments, let's use it for this one. |
david | |
I don't think this one needs a short option. |
david | |
Method docstrings should be written in the imperative mood ("Discard a review draft"). There's also an extra space between the … |
david | |
This text needs to come before the "Args" section. |
david | |
This should be a comment (#) rather than a string. |
david | |
This should be a comment (#) rather than a string. |
david | |
Same comments about the docstring here. |
david | |
This should be a comment (#) rather than a string. |
david | |
Same comments about the docstring. |
david | |
I feel like it might be nicer to set default=None for these options, and then only include them in the … |
david | |
E122 continuation line missing indentation or outdented |
reviewbot | |
Hi Anahita, one little thing I noticed from your code is that you are using """""" for comments. Last time … |
qianxi | |
Let's wrap this a little differently to make it a bit more compact: raise CommandError( '...' '...') |
david | |
E128 continuation line under-indented for visual indent |
reviewbot | |
E128 continuation line under-indented for visual indent |
reviewbot | |
E128 continuation line under-indented for visual indent |
reviewbot | |
E128 continuation line under-indented for visual indent |
reviewbot | |
E128 continuation line under-indented for visual indent |
reviewbot | |
E201 whitespace after '(' |
reviewbot | |
E128 continuation line under-indented for visual indent |
reviewbot | |
E128 continuation line under-indented for visual indent |
reviewbot | |
E128 continuation line under-indented for visual indent |
reviewbot | |
E128 continuation line under-indented for visual indent |
reviewbot | |
E128 continuation line under-indented for visual indent |
reviewbot | |
E128 continuation line under-indented for visual indent |
reviewbot | |
E128 continuation line under-indented for visual indent |
reviewbot | |
E128 continuation line under-indented for visual indent |
reviewbot | |
E128 continuation line under-indented for visual indent |
reviewbot | |
E128 continuation line under-indented for visual indent |
reviewbot | |
E128 continuation line under-indented for visual indent |
reviewbot | |
E128 continuation line under-indented for visual indent |
reviewbot | |
E128 continuation line under-indented for visual indent |
reviewbot | |
E128 continuation line under-indented for visual indent |
reviewbot | |
E128 continuation line under-indented for visual indent |
reviewbot | |
E131 continuation line unaligned for hanging indent |
reviewbot | |
E265 block comment should start with '# ' |
reviewbot | |
E128 continuation line under-indented for visual indent |
reviewbot | |
E128 continuation line under-indented for visual indent |
reviewbot | |
E128 continuation line under-indented for visual indent |
reviewbot | |
E128 continuation line under-indented for visual indent |
reviewbot | |
E128 continuation line under-indented for visual indent |
reviewbot | |
E128 continuation line under-indented for visual indent |
reviewbot | |
E128 continuation line under-indented for visual indent |
reviewbot | |
F401 'rbtools.commands.CommandError' imported but unused |
reviewbot | |
F401 'rbtools.commands.post.Post' imported but unused |
reviewbot | |
E302 expected 2 blank lines, found 1 |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E501 line too long (128 > 79 characters) |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E303 too many blank lines (2) |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E501 line too long (133 > 79 characters) |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E501 line too long (118 > 79 characters) |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E501 line too long (109 > 79 characters) |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
W503 line break before binary operator |
reviewbot | |
W503 line break before binary operator |
reviewbot | |
W503 line break before binary operator |
reviewbot | |
W503 line break before binary operator |
reviewbot | |
W503 line break before binary operator |
reviewbot | |
W503 line break before binary operator |
reviewbot | |
W503 line break before binary operator |
reviewbot | |
W503 line break before binary operator |
reviewbot | |
W503 line break before binary operator |
reviewbot | |
W503 line break before binary operator |
reviewbot | |
W503 line break before binary operator |
reviewbot | |
W503 line break before binary operator |
reviewbot |
- Commits:
-
Summary ID Author 63e8bbcf704b383e8c9b6cf7d83a0c21f12ab372 anahita-m 4be43a13c38a3c93efdf5a7bf57703f4c5e17485 anahita-m 13a8e52d58536ae09820497d796b636d199cb405 anahita-m 63e8bbcf704b383e8c9b6cf7d83a0c21f12ab372 anahita-m 4be43a13c38a3c93efdf5a7bf57703f4c5e17485 anahita-m 13a8e52d58536ae09820497d796b636d199cb405 anahita-m - Diff:
-
Revision 2 (+179 -75)
Checks run (1 failed, 1 succeeded)
flake8
- Commits:
-
Summary ID Author 63e8bbcf704b383e8c9b6cf7d83a0c21f12ab372 anahita-m 4be43a13c38a3c93efdf5a7bf57703f4c5e17485 anahita-m 13a8e52d58536ae09820497d796b636d199cb405 anahita-m 63e8bbcf704b383e8c9b6cf7d83a0c21f12ab372 anahita-m 4be43a13c38a3c93efdf5a7bf57703f4c5e17485 anahita-m cfc03db5f69706e0b7bd0b966113efffdb7c1b22 anahita-m - Diff:
-
Revision 3 (+194 -90)
Checks run (2 succeeded)
- Commits:
-
Summary ID Author 63e8bbcf704b383e8c9b6cf7d83a0c21f12ab372 anahita-m 4be43a13c38a3c93efdf5a7bf57703f4c5e17485 anahita-m cfc03db5f69706e0b7bd0b966113efffdb7c1b22 anahita-m 63e8bbcf704b383e8c9b6cf7d83a0c21f12ab372 anahita-m 4be43a13c38a3c93efdf5a7bf57703f4c5e17485 anahita-m ad6a62ec85ff82e7a790d3ea3c6470495f3411d4 anahita-m - Diff:
-
Revision 4 (+194 -90)
- Commits:
-
Summary ID Author 63e8bbcf704b383e8c9b6cf7d83a0c21f12ab372 anahita-m 4be43a13c38a3c93efdf5a7bf57703f4c5e17485 anahita-m ad6a62ec85ff82e7a790d3ea3c6470495f3411d4 anahita-m 63e8bbcf704b383e8c9b6cf7d83a0c21f12ab372 anahita-m 4be43a13c38a3c93efdf5a7bf57703f4c5e17485 anahita-m d5525373492e8041b6c5509a4ca40a6542b6382d anahita-m - Diff:
-
Revision 5 (+196 -90)
Checks run (2 succeeded)
- Commits:
-
Summary ID Author 63e8bbcf704b383e8c9b6cf7d83a0c21f12ab372 anahita-m 4be43a13c38a3c93efdf5a7bf57703f4c5e17485 anahita-m d5525373492e8041b6c5509a4ca40a6542b6382d anahita-m 63e8bbcf704b383e8c9b6cf7d83a0c21f12ab372 anahita-m 4be43a13c38a3c93efdf5a7bf57703f4c5e17485 anahita-m 17270c8bc854c7e67f6c42cf0368d063f768f440 anahita-m - Diff:
-
Revision 6 (+219 -91)
Checks run (1 failed, 1 succeeded)
flake8
- Commits:
-
Summary ID Author 63e8bbcf704b383e8c9b6cf7d83a0c21f12ab372 anahita-m 4be43a13c38a3c93efdf5a7bf57703f4c5e17485 anahita-m 17270c8bc854c7e67f6c42cf0368d063f768f440 anahita-m 63e8bbcf704b383e8c9b6cf7d83a0c21f12ab372 anahita-m 4be43a13c38a3c93efdf5a7bf57703f4c5e17485 anahita-m ae37787fd1fabbbbec21523be83a2d4a8399a832 anahita-m - Diff:
-
Revision 7 (+219 -91)
Checks run (1 failed, 1 succeeded)
flake8
- Commits:
-
Summary ID Author 63e8bbcf704b383e8c9b6cf7d83a0c21f12ab372 anahita-m 4be43a13c38a3c93efdf5a7bf57703f4c5e17485 anahita-m ae37787fd1fabbbbec21523be83a2d4a8399a832 anahita-m 63e8bbcf704b383e8c9b6cf7d83a0c21f12ab372 anahita-m 4be43a13c38a3c93efdf5a7bf57703f4c5e17485 anahita-m 14047254d34a40de123e49761479720767926fbc anahita-m - Diff:
-
Revision 8 (+217 -91)
Checks run (2 succeeded)
- Commits:
-
Summary ID Author 63e8bbcf704b383e8c9b6cf7d83a0c21f12ab372 anahita-m 4be43a13c38a3c93efdf5a7bf57703f4c5e17485 anahita-m 14047254d34a40de123e49761479720767926fbc anahita-m 63e8bbcf704b383e8c9b6cf7d83a0c21f12ab372 anahita-m 4be43a13c38a3c93efdf5a7bf57703f4c5e17485 anahita-m 916d93511ce67d2e4d1c43b7a7180af490634305 anahita-m - Diff:
-
Revision 9 (+219 -91)
- Commits:
-
Summary ID Author 63e8bbcf704b383e8c9b6cf7d83a0c21f12ab372 anahita-m 4be43a13c38a3c93efdf5a7bf57703f4c5e17485 anahita-m 916d93511ce67d2e4d1c43b7a7180af490634305 anahita-m 63e8bbcf704b383e8c9b6cf7d83a0c21f12ab372 anahita-m 4be43a13c38a3c93efdf5a7bf57703f4c5e17485 anahita-m 3c3930a135d7b7e48f51de0946101a45d48154c7 anahita-m - Diff:
-
Revision 10 (+219 -91)
Checks run (2 succeeded)
- Commits:
-
Summary ID Author 63e8bbcf704b383e8c9b6cf7d83a0c21f12ab372 anahita-m 4be43a13c38a3c93efdf5a7bf57703f4c5e17485 anahita-m 3c3930a135d7b7e48f51de0946101a45d48154c7 anahita-m 63e8bbcf704b383e8c9b6cf7d83a0c21f12ab372 anahita-m 4be43a13c38a3c93efdf5a7bf57703f4c5e17485 anahita-m 29ad51b553be78bf2aa853b4b5b4501ab4b50712 anahita-m - Diff:
-
Revision 11 (+267 -99)
Checks run (1 failed, 1 succeeded)
flake8
- Commits:
-
Summary ID Author 63e8bbcf704b383e8c9b6cf7d83a0c21f12ab372 anahita-m 4be43a13c38a3c93efdf5a7bf57703f4c5e17485 anahita-m 29ad51b553be78bf2aa853b4b5b4501ab4b50712 anahita-m 63e8bbcf704b383e8c9b6cf7d83a0c21f12ab372 anahita-m 4be43a13c38a3c93efdf5a7bf57703f4c5e17485 anahita-m c4b0af8c85497769be816a498ed96fe06c9c9062 anahita-m - Diff:
-
Revision 12 (+503 -101)
Checks run (1 failed, 1 succeeded)
flake8
- Commits:
-
Summary ID Author 63e8bbcf704b383e8c9b6cf7d83a0c21f12ab372 anahita-m 4be43a13c38a3c93efdf5a7bf57703f4c5e17485 anahita-m c4b0af8c85497769be816a498ed96fe06c9c9062 anahita-m 63e8bbcf704b383e8c9b6cf7d83a0c21f12ab372 anahita-m 4be43a13c38a3c93efdf5a7bf57703f4c5e17485 anahita-m 5440622f8d299d89b608cc4feb850f692173c4e3 anahita-m - Diff:
-
Revision 13 (+519 -101)
- Commits:
-
Summary ID Author 63e8bbcf704b383e8c9b6cf7d83a0c21f12ab372 anahita-m 4be43a13c38a3c93efdf5a7bf57703f4c5e17485 anahita-m 5440622f8d299d89b608cc4feb850f692173c4e3 anahita-m 63e8bbcf704b383e8c9b6cf7d83a0c21f12ab372 anahita-m 4be43a13c38a3c93efdf5a7bf57703f4c5e17485 anahita-m b1cedcd395355e33819b95491cd5632b0453f37a anahita-m - Diff:
-
Revision 14 (+519 -101)
Checks run (2 succeeded)
- Commits:
-
Summary ID Author 63e8bbcf704b383e8c9b6cf7d83a0c21f12ab372 anahita-m 4be43a13c38a3c93efdf5a7bf57703f4c5e17485 anahita-m b1cedcd395355e33819b95491cd5632b0453f37a anahita-m 63e8bbcf704b383e8c9b6cf7d83a0c21f12ab372 anahita-m 4be43a13c38a3c93efdf5a7bf57703f4c5e17485 anahita-m 63b1afc27810c79540d3c08374cd724f6cf38faa anahita-m - Diff:
-
Revision 15 (+624 -106)
Checks run (1 failed, 1 succeeded)
flake8
- Commits:
-
Summary ID Author 63e8bbcf704b383e8c9b6cf7d83a0c21f12ab372 anahita-m 4be43a13c38a3c93efdf5a7bf57703f4c5e17485 anahita-m 63b1afc27810c79540d3c08374cd724f6cf38faa anahita-m 63e8bbcf704b383e8c9b6cf7d83a0c21f12ab372 anahita-m 4be43a13c38a3c93efdf5a7bf57703f4c5e17485 anahita-m 7eb0a6d817637b85328a4990edad3e775ae63f73 anahita-m - Diff:
-
Revision 16 (+634 -106)
Checks run (2 succeeded)
- Commits:
-
Summary ID Author 63e8bbcf704b383e8c9b6cf7d83a0c21f12ab372 anahita-m 4be43a13c38a3c93efdf5a7bf57703f4c5e17485 anahita-m 7eb0a6d817637b85328a4990edad3e775ae63f73 anahita-m 63e8bbcf704b383e8c9b6cf7d83a0c21f12ab372 anahita-m 4be43a13c38a3c93efdf5a7bf57703f4c5e17485 anahita-m 1f7909d3847458b863efcff1484e62d9ed317608 anahita-m - Diff:
-
Revision 17 (+714 -106)
- Commits:
-
Summary ID Author 63e8bbcf704b383e8c9b6cf7d83a0c21f12ab372 anahita-m 4be43a13c38a3c93efdf5a7bf57703f4c5e17485 anahita-m 1f7909d3847458b863efcff1484e62d9ed317608 anahita-m 63e8bbcf704b383e8c9b6cf7d83a0c21f12ab372 anahita-m 4be43a13c38a3c93efdf5a7bf57703f4c5e17485 anahita-m 569bf68e2b3923915d9b78480b1777c463e49927 anahita-m - Diff:
-
Revision 18 (+818 -106)
- Commits:
-
Summary ID Author 63e8bbcf704b383e8c9b6cf7d83a0c21f12ab372 anahita-m 4be43a13c38a3c93efdf5a7bf57703f4c5e17485 anahita-m 569bf68e2b3923915d9b78480b1777c463e49927 anahita-m 63e8bbcf704b383e8c9b6cf7d83a0c21f12ab372 anahita-m 4be43a13c38a3c93efdf5a7bf57703f4c5e17485 anahita-m 3b9ca91210593991550eab329ed38a19b74e54fe anahita-m - Diff:
-
Revision 19 (+1026 -106)
Checks run (1 failed, 1 succeeded)
flake8
- Commits:
-
Summary ID Author 63e8bbcf704b383e8c9b6cf7d83a0c21f12ab372 anahita-m 4be43a13c38a3c93efdf5a7bf57703f4c5e17485 anahita-m 3b9ca91210593991550eab329ed38a19b74e54fe anahita-m 63e8bbcf704b383e8c9b6cf7d83a0c21f12ab372 anahita-m 4be43a13c38a3c93efdf5a7bf57703f4c5e17485 anahita-m 2da6e6ac37298f952d0cd1a091f76598620ba0e0 anahita-m - Diff:
-
Revision 20 (+1030 -106)
-
-
Hi Anahita, one little thing I noticed from your code is that you are using """""" for comments. Last time I remember David told me that we should mainly use # comments in our code but use """""" comments for docstring like function description, args, raise errors and return at the beginning of each function.
-
This is looking pretty solid. There are a few stylistic things related to docstrings that I marked, and a lot of places where you're using triple-quoted strings which instead should be comments (using #).
-
This should be in sentence case.
But even better would be to use option groups to keep things together. See
commands/post.py
for an example. -
When we include short options, we only do single characters. Given how rare it is to set a review footer, I think thisk one probably doesn't need a short version.
-
-
-
Help text should be in sentence case. This should probably also mention that if not specified, the comment will cover a single line.
-
-
-
-
Method docstrings should be written in the imperative mood ("Discard a review draft"). There's also an extra space between the """ and the description.
-
-
-
-
-
-
-
I feel like it might be nicer to set default=None for these options, and then only include them in the API requests to create/update the review if they're non-None.
-
Let's wrap this a little differently to make it a bit more compact:
raise CommandError( '...' '...')
- Change Summary:
-
Fixing docustring and comment formatting. Organized options via option groups. Added some basic tests. Added check for multiple matches for file name.
- Commits:
-
Summary ID Author 63e8bbcf704b383e8c9b6cf7d83a0c21f12ab372 anahita-m 4be43a13c38a3c93efdf5a7bf57703f4c5e17485 anahita-m 2da6e6ac37298f952d0cd1a091f76598620ba0e0 anahita-m 63e8bbcf704b383e8c9b6cf7d83a0c21f12ab372 anahita-m 4be43a13c38a3c93efdf5a7bf57703f4c5e17485 anahita-m ba2432ef24061fc247fde8176ca43c5754ea0fa0 anahita-m ba8c831bb300d32085fb3e60e843045ca57a401d anahita-m 1edca6817b697c82a924cfb74b5ce1364c312f4f anahita-m
Checks run (1 failed, 1 succeeded)
flake8
-
Warning: Showing 30 of 107 failures.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Summary:
-
[WIP] Adding Review CommandsAdding Review Commands
- Testing Done:
-
+ Manually tested all commands so far and documented on Notion
- Commits:
-
Summary ID Author 63e8bbcf704b383e8c9b6cf7d83a0c21f12ab372 anahita-m 4be43a13c38a3c93efdf5a7bf57703f4c5e17485 anahita-m ba2432ef24061fc247fde8176ca43c5754ea0fa0 anahita-m ba8c831bb300d32085fb3e60e843045ca57a401d anahita-m 1edca6817b697c82a924cfb74b5ce1364c312f4f anahita-m 63e8bbcf704b383e8c9b6cf7d83a0c21f12ab372 anahita-m 4be43a13c38a3c93efdf5a7bf57703f4c5e17485 anahita-m ba2432ef24061fc247fde8176ca43c5754ea0fa0 anahita-m 47ea0c349af3fad6def195e0454c13be9e21f5b6 anahita-m
Checks run (1 failed, 1 succeeded)
flake8
- Commits:
-
Summary ID Author 63e8bbcf704b383e8c9b6cf7d83a0c21f12ab372 anahita-m 4be43a13c38a3c93efdf5a7bf57703f4c5e17485 anahita-m ba2432ef24061fc247fde8176ca43c5754ea0fa0 anahita-m 47ea0c349af3fad6def195e0454c13be9e21f5b6 anahita-m 63e8bbcf704b383e8c9b6cf7d83a0c21f12ab372 anahita-m 4be43a13c38a3c93efdf5a7bf57703f4c5e17485 anahita-m ba2432ef24061fc247fde8176ca43c5754ea0fa0 anahita-m 47ea0c349af3fad6def195e0454c13be9e21f5b6 anahita-m ecd12d4a6c108b75324416937c70324b1d69253d anahita-m
Checks run (2 succeeded)
- Commits:
-
Summary ID Author 63e8bbcf704b383e8c9b6cf7d83a0c21f12ab372 anahita-m 4be43a13c38a3c93efdf5a7bf57703f4c5e17485 anahita-m ba2432ef24061fc247fde8176ca43c5754ea0fa0 anahita-m 47ea0c349af3fad6def195e0454c13be9e21f5b6 anahita-m ecd12d4a6c108b75324416937c70324b1d69253d anahita-m 63e8bbcf704b383e8c9b6cf7d83a0c21f12ab372 anahita-m 4be43a13c38a3c93efdf5a7bf57703f4c5e17485 anahita-m ba2432ef24061fc247fde8176ca43c5754ea0fa0 anahita-m 47ea0c349af3fad6def195e0454c13be9e21f5b6 anahita-m ecd12d4a6c108b75324416937c70324b1d69253d anahita-m 8452d7a6dd850593028455a3f421ea1c251d510c anahita-m
Checks run (2 succeeded)
- Commits:
-
Summary ID Author 63e8bbcf704b383e8c9b6cf7d83a0c21f12ab372 anahita-m 4be43a13c38a3c93efdf5a7bf57703f4c5e17485 anahita-m ba2432ef24061fc247fde8176ca43c5754ea0fa0 anahita-m 47ea0c349af3fad6def195e0454c13be9e21f5b6 anahita-m ecd12d4a6c108b75324416937c70324b1d69253d anahita-m 8452d7a6dd850593028455a3f421ea1c251d510c anahita-m 63e8bbcf704b383e8c9b6cf7d83a0c21f12ab372 anahita-m 4be43a13c38a3c93efdf5a7bf57703f4c5e17485 anahita-m ba2432ef24061fc247fde8176ca43c5754ea0fa0 anahita-m 47ea0c349af3fad6def195e0454c13be9e21f5b6 anahita-m ecd12d4a6c108b75324416937c70324b1d69253d anahita-m 8452d7a6dd850593028455a3f421ea1c251d510c anahita-m 6ca62ba88fdf80ecda869be22176f74e4fe8ce49 anahita-m
Checks run (2 succeeded)
- Commits:
-
Summary ID Author 63e8bbcf704b383e8c9b6cf7d83a0c21f12ab372 anahita-m 4be43a13c38a3c93efdf5a7bf57703f4c5e17485 anahita-m ba2432ef24061fc247fde8176ca43c5754ea0fa0 anahita-m 47ea0c349af3fad6def195e0454c13be9e21f5b6 anahita-m ecd12d4a6c108b75324416937c70324b1d69253d anahita-m 8452d7a6dd850593028455a3f421ea1c251d510c anahita-m 6ca62ba88fdf80ecda869be22176f74e4fe8ce49 anahita-m 63e8bbcf704b383e8c9b6cf7d83a0c21f12ab372 anahita-m 4be43a13c38a3c93efdf5a7bf57703f4c5e17485 anahita-m ba2432ef24061fc247fde8176ca43c5754ea0fa0 anahita-m 47ea0c349af3fad6def195e0454c13be9e21f5b6 anahita-m ecd12d4a6c108b75324416937c70324b1d69253d anahita-m 8452d7a6dd850593028455a3f421ea1c251d510c anahita-m 6ca62ba88fdf80ecda869be22176f74e4fe8ce49 anahita-m c5b9492c6a0ab8f22407b69e49c6694b7ce9c78d anahita-m
Checks run (2 succeeded)
- Commits:
-
Summary ID Author 63e8bbcf704b383e8c9b6cf7d83a0c21f12ab372 anahita-m 4be43a13c38a3c93efdf5a7bf57703f4c5e17485 anahita-m ba2432ef24061fc247fde8176ca43c5754ea0fa0 anahita-m 47ea0c349af3fad6def195e0454c13be9e21f5b6 anahita-m ecd12d4a6c108b75324416937c70324b1d69253d anahita-m 8452d7a6dd850593028455a3f421ea1c251d510c anahita-m 6ca62ba88fdf80ecda869be22176f74e4fe8ce49 anahita-m c5b9492c6a0ab8f22407b69e49c6694b7ce9c78d anahita-m 63e8bbcf704b383e8c9b6cf7d83a0c21f12ab372 anahita-m 4be43a13c38a3c93efdf5a7bf57703f4c5e17485 anahita-m ba2432ef24061fc247fde8176ca43c5754ea0fa0 anahita-m 47ea0c349af3fad6def195e0454c13be9e21f5b6 anahita-m ecd12d4a6c108b75324416937c70324b1d69253d anahita-m 8452d7a6dd850593028455a3f421ea1c251d510c anahita-m 6ca62ba88fdf80ecda869be22176f74e4fe8ce49 anahita-m c5b9492c6a0ab8f22407b69e49c6694b7ce9c78d anahita-m cda23b8ca6b7a7c8377d7a02a46cba89709c20cf anahita-m
Checks run (2 succeeded)
- Commits:
-
Summary ID Author 63e8bbcf704b383e8c9b6cf7d83a0c21f12ab372 anahita-m 4be43a13c38a3c93efdf5a7bf57703f4c5e17485 anahita-m ba2432ef24061fc247fde8176ca43c5754ea0fa0 anahita-m 47ea0c349af3fad6def195e0454c13be9e21f5b6 anahita-m ecd12d4a6c108b75324416937c70324b1d69253d anahita-m 8452d7a6dd850593028455a3f421ea1c251d510c anahita-m 6ca62ba88fdf80ecda869be22176f74e4fe8ce49 anahita-m c5b9492c6a0ab8f22407b69e49c6694b7ce9c78d anahita-m cda23b8ca6b7a7c8377d7a02a46cba89709c20cf anahita-m f476ee907f86595e0cb8b34fe6412641ed35157b anahita-m 4d965957f5cf3844fb9f5491949e3a4169a47d91 anahita-m 1af7b76735880743668361c1948703444a698748 anahita-m 47712bc2b2d49190b841fe97e4266511ac870742 anahita-m 0edcd34d84c0c769bc7e5381b9ac8d60698f3518 anahita-m d9b7b1304c35c596af90b8a9043884aca220caee anahita-m 2b7db12273ca222863f9c1f98d3b51e9ecfbbbd9 anahita-m b7511b79eb538f19d569b8260bce7d86de0a1da5 anahita-m 1373b3d26d834fa1a3d6412606c683459e6bc2f8 anahita-m 337290f1dd6f62f80a8e579221947c52974764a4 anahita-m 7745522b8daf3587aad16fb6095a9693cfebf5ce anahita-m
- Description:
-
We'd like to add a new command to RBTools for performing reviews, which
itself would actually be several commands. This might be useful for some users who are super heavy command-line users, and would definitely be useful for people who want to add automation of various sorts (such as adding reviews after running custom CI tools that we don't have ~ integrations for). ~ integrations for). This review request is dependent upon the JSON output object from r#11521. - Commits:
-
Summary ID Author f476ee907f86595e0cb8b34fe6412641ed35157b anahita-m 4d965957f5cf3844fb9f5491949e3a4169a47d91 anahita-m 1af7b76735880743668361c1948703444a698748 anahita-m 47712bc2b2d49190b841fe97e4266511ac870742 anahita-m 0edcd34d84c0c769bc7e5381b9ac8d60698f3518 anahita-m d9b7b1304c35c596af90b8a9043884aca220caee anahita-m 2b7db12273ca222863f9c1f98d3b51e9ecfbbbd9 anahita-m b7511b79eb538f19d569b8260bce7d86de0a1da5 anahita-m 1373b3d26d834fa1a3d6412606c683459e6bc2f8 anahita-m 337290f1dd6f62f80a8e579221947c52974764a4 anahita-m 7745522b8daf3587aad16fb6095a9693cfebf5ce anahita-m 71326e2dc6bc97a01030de44affe588b9f21a7e1 anahita-m 195de49d5a5ce6b1979556f85ed9b31b0e7da06a anahita-m 3c36f63b5ae8e656f55c01d0ce335bf119e9a61b anahita-m 5f802fb4a6be325044800fb4cf7d757314dde9ac anahita-m d064c6470393a840b48132175529c84efe9be196 anahita-m 7b70b35e7fed9cb97c0219d277d3d91270d6e95f anahita-m 5ec4fdc3608d67ab2698ed0cf94684b06170171b anahita-m 84c9bc49e456170fc573aae84d1d9289363d6640 anahita-m d04c4bc18e0c5cd2b3f3e175a9832bcd66603c26 anahita-m d1fb4c9b4a2ac41622e2d069dbc1df728af79b54 anahita-m 4f7bb7547af17cd64280cf65f701139cf5e0e446 anahita-m 1e5f3c0a3e1dab8ba83e98dfe756d37ef46841ea anahita-m 8401d70d9ff2f9c17ebe5d472fa85e950da12b4d anahita-m 81c91d321e6acdb7f74d7a58d1fd478f946c38c9 anahita-m 74be2931d947a5d9865b4ad05809ad49d6c1215d anahita-m
- Commits:
-
Summary ID Author 71326e2dc6bc97a01030de44affe588b9f21a7e1 anahita-m 195de49d5a5ce6b1979556f85ed9b31b0e7da06a anahita-m 3c36f63b5ae8e656f55c01d0ce335bf119e9a61b anahita-m 5f802fb4a6be325044800fb4cf7d757314dde9ac anahita-m d064c6470393a840b48132175529c84efe9be196 anahita-m 7b70b35e7fed9cb97c0219d277d3d91270d6e95f anahita-m 5ec4fdc3608d67ab2698ed0cf94684b06170171b anahita-m 84c9bc49e456170fc573aae84d1d9289363d6640 anahita-m d04c4bc18e0c5cd2b3f3e175a9832bcd66603c26 anahita-m d1fb4c9b4a2ac41622e2d069dbc1df728af79b54 anahita-m 4f7bb7547af17cd64280cf65f701139cf5e0e446 anahita-m 1e5f3c0a3e1dab8ba83e98dfe756d37ef46841ea anahita-m 8401d70d9ff2f9c17ebe5d472fa85e950da12b4d anahita-m 81c91d321e6acdb7f74d7a58d1fd478f946c38c9 anahita-m 74be2931d947a5d9865b4ad05809ad49d6c1215d anahita-m 71326e2dc6bc97a01030de44affe588b9f21a7e1 anahita-m 195de49d5a5ce6b1979556f85ed9b31b0e7da06a anahita-m 3c36f63b5ae8e656f55c01d0ce335bf119e9a61b anahita-m 5f802fb4a6be325044800fb4cf7d757314dde9ac anahita-m d064c6470393a840b48132175529c84efe9be196 anahita-m 7b70b35e7fed9cb97c0219d277d3d91270d6e95f anahita-m 5ec4fdc3608d67ab2698ed0cf94684b06170171b anahita-m 84c9bc49e456170fc573aae84d1d9289363d6640 anahita-m d04c4bc18e0c5cd2b3f3e175a9832bcd66603c26 anahita-m d1fb4c9b4a2ac41622e2d069dbc1df728af79b54 anahita-m 4f7bb7547af17cd64280cf65f701139cf5e0e446 anahita-m 1e5f3c0a3e1dab8ba83e98dfe756d37ef46841ea anahita-m 8401d70d9ff2f9c17ebe5d472fa85e950da12b4d anahita-m 81c91d321e6acdb7f74d7a58d1fd478f946c38c9 anahita-m 74be2931d947a5d9865b4ad05809ad49d6c1215d anahita-m 58144e4a1a4e56ead9cf04785aef9511546373ce anahita-m