[BEAM-2000] run pylint on specific module#2579
[BEAM-2000] run pylint on specific module#2579ubunatic wants to merge 4 commits intoapache:masterfrom
Conversation
|
R: @sb2nov |
|
Thanks, looks good apart from the two nits. |
sdks/python/run_pylint.sh
Outdated
| if [[ $FILES_TO_IGNORE ]]; then | ||
| FILES_TO_IGNORE="$FILES_TO_IGNORE, " | ||
| if test -z "$FILES_TO_IGNORE" | ||
| then FILES_TO_IGNORE="$(basename $file)" |
There was a problem hiding this comment.
Nit: Indent the then & else inside the if
There was a problem hiding this comment.
OK.
However, I think the non-indented then and else is more readable in bash in this case, i.e., you should write either:
if ...
then single command
else single command
fi
or for multiple commands:
if ...; then
indented commands
more commands
else
indented command
more commands
fi
sdks/python/run_pylint.sh
Outdated
| echo "Running pep8:" | ||
| pep8 apache_beam --exclude="$FILES_TO_IGNORE" | ||
| if test $# -gt 0 | ||
| then MODULE="$@" |
There was a problem hiding this comment.
Nit: Indent the then & else inside the if
|
LGTM, thanks for this 👍 @aaltay please merge |
|
Could you add a comment to the top of the file on how to use this (something like ./run_pylint.sh [module], module defaults apache_beam) |
|
OK I added the usage info. Other question: |
|
LGTM. Travis tests are being currently removed. Although Travis tests give valid signals for Python development they are taking too long and timing out for Java tests. Part of the reason they are still there is Python on Mac tests are useful. (@jasonkuster may have more details) Jenkins tests should not fail. If they do for an unrelated reason (like in this case) please file an issue for a flaky/failing tests. |
|
Thx for the info. The Jenkins test failed because of the following flaky test https://issues.apache.org/jira/browse/BEAM-1868 |
|
Retest this please |
pep8andpylinttestcommand instead