Do some clean-up on the ReviewBot worker code.
Review Request #8433 — Created Sept. 24, 2016 and submitted
This change adds unicode_literals, docstrings, and does some cleanup for the
worker code. I haven't done docstrings for the individual tools because I got
lazy.
Tested that workers still responded correctly.
| Description | From | Last Updated |
|---|---|---|
|
Also optional, I think. |
|
|
|
Missing env |
|
|
|
I think these are optional. At least, there are default args set. |
|
|
|
Can we call this queue_name ? |
|
|
|
"File" |
|
|
|
% (...) on next line |
|
|
|
Mind putting a blank line here? |
|
|
|
And here. |
|
|
|
"temporary" |
|
|
|
"bool" |
|
|
|
"bool" |
|
|
|
"bool" |
|
|
|
"bool" |
|
|
|
"will only single line comment" might be missing a word or two. |
|
|
|
Missing trailing period. |
|
|
|
Missing a type. |
|
|
|
"bool" |
|
|
|
"bool" |
|
|
|
"bool" |
|
|
|
Missing a type. |
|
|
|
"bool" |
|
|
|
Missing a "Returns". |
|
|
|
"bool" |
|
|
|
"bool" |
|
|
|
"bool" |
|
|
|
:py:attr: is only for class attributes. There's no role for parameters. This should just use standard double backticks. |
|
|
|
"bool" |
|
- Commit:
-
50d81e0edf2b61d00d61933b711706cce4cb31d7033fb02561f8de20192390f245fc6a5137adeaa9
-
Tool: Pyflakes Processed Files: bot/reviewbot/tools/process.py bot/reviewbot/tasks.py bot/reviewbot/utils.py bot/reviewbot/tools/__init__.py bot/reviewbot/tools/pyflakes.py bot/reviewbot/tools/pep8.py bot/reviewbot/processing/filesystem.py bot/reviewbot/tools/cpplint.py bot/reviewbot/tools/buildbot.py bot/reviewbot/celery.py bot/reviewbot/tools/cppcheck.py bot/reviewbot/tools/jshint.py bot/reviewbot/__init__.py bot/reviewbot/processing/review.py Tool: PEP8 Style Checker Processed Files: bot/reviewbot/tools/process.py bot/reviewbot/tasks.py bot/reviewbot/utils.py bot/reviewbot/tools/__init__.py bot/reviewbot/tools/pyflakes.py bot/reviewbot/tools/pep8.py bot/reviewbot/processing/filesystem.py bot/reviewbot/tools/cpplint.py bot/reviewbot/tools/buildbot.py bot/reviewbot/celery.py bot/reviewbot/tools/cppcheck.py bot/reviewbot/tools/jshint.py bot/reviewbot/__init__.py bot/reviewbot/processing/review.py
- Commit:
-
033fb02561f8de20192390f245fc6a5137adeaa96db2e0102e99a7890f9f40ea55ec89138b4306b6
-
Tool: Pyflakes Processed Files: bot/reviewbot/tools/process.py bot/reviewbot/tasks.py bot/reviewbot/utils.py bot/reviewbot/tools/__init__.py bot/reviewbot/tools/pyflakes.py bot/reviewbot/tools/pep8.py bot/reviewbot/processing/filesystem.py bot/reviewbot/tools/cpplint.py bot/reviewbot/tools/buildbot.py bot/reviewbot/celery.py bot/reviewbot/tools/cppcheck.py bot/reviewbot/tools/jshint.py bot/reviewbot/__init__.py bot/reviewbot/processing/review.py Tool: PEP8 Style Checker Processed Files: bot/reviewbot/tools/process.py bot/reviewbot/tasks.py bot/reviewbot/utils.py bot/reviewbot/tools/__init__.py bot/reviewbot/tools/pyflakes.py bot/reviewbot/tools/pep8.py bot/reviewbot/processing/filesystem.py bot/reviewbot/tools/cpplint.py bot/reviewbot/tools/buildbot.py bot/reviewbot/celery.py bot/reviewbot/tools/cppcheck.py bot/reviewbot/tools/jshint.py bot/reviewbot/__init__.py bot/reviewbot/processing/review.py
- Commit:
-
6db2e0102e99a7890f9f40ea55ec89138b4306b6e13d365bd96aa025fe9fb0ff69716a006c3983b1
-
Tool: Pyflakes Processed Files: bot/reviewbot/tools/process.py bot/reviewbot/tasks.py bot/reviewbot/utils.py bot/reviewbot/tools/__init__.py bot/reviewbot/tools/pyflakes.py bot/reviewbot/tools/pep8.py bot/reviewbot/processing/filesystem.py bot/reviewbot/tools/cpplint.py bot/reviewbot/tools/buildbot.py bot/reviewbot/celery.py bot/reviewbot/tools/cppcheck.py bot/reviewbot/tools/jshint.py bot/reviewbot/__init__.py bot/reviewbot/processing/review.py Tool: PEP8 Style Checker Processed Files: bot/reviewbot/tools/process.py bot/reviewbot/tasks.py bot/reviewbot/utils.py bot/reviewbot/tools/__init__.py bot/reviewbot/tools/pyflakes.py bot/reviewbot/tools/pep8.py bot/reviewbot/processing/filesystem.py bot/reviewbot/tools/cpplint.py bot/reviewbot/tools/buildbot.py bot/reviewbot/celery.py bot/reviewbot/tools/cppcheck.py bot/reviewbot/tools/jshint.py bot/reviewbot/__init__.py bot/reviewbot/processing/review.py
Tool: PEP8 Style Checker Processed Files: bot/reviewbot/tools/process.py bot/reviewbot/tasks.py bot/reviewbot/utils.py bot/reviewbot/tools/__init__.py bot/reviewbot/tools/pyflakes.py bot/reviewbot/tools/pep8.py bot/reviewbot/processing/filesystem.py bot/reviewbot/tools/cpplint.py bot/reviewbot/tools/buildbot.py bot/reviewbot/celery.py bot/reviewbot/tools/cppcheck.py bot/reviewbot/tools/jshint.py bot/reviewbot/__init__.py bot/reviewbot/processing/review.py Tool: Pyflakes Processed Files: bot/reviewbot/tools/process.py bot/reviewbot/tasks.py bot/reviewbot/utils.py bot/reviewbot/tools/__init__.py bot/reviewbot/tools/pyflakes.py bot/reviewbot/tools/pep8.py bot/reviewbot/processing/filesystem.py bot/reviewbot/tools/cpplint.py bot/reviewbot/tools/buildbot.py bot/reviewbot/celery.py bot/reviewbot/tools/cppcheck.py bot/reviewbot/tools/jshint.py bot/reviewbot/__init__.py bot/reviewbot/processing/review.py