forked from PaddlePaddle/Paddle
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request PaddlePaddle#59 from jerrywgz/move_dir
mv paddlevlp to paddlemix
- Loading branch information
Showing
616 changed files
with
19,766 additions
and
15,231 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,4 +24,4 @@ for file in $files; do | |
fi | ||
done | ||
|
||
exit $TOTAL_ERRORS | ||
exit $TOTAL_ERRORS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/bash | ||
|
||
TOTAL_ERRORS=0 | ||
|
||
|
||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | ||
export PYTHONPATH=$DIR:$PYTHONPATH | ||
|
||
readonly VERSION="2.12.0" | ||
version=$(pylint --version | grep 'pylint') | ||
|
||
if ! [[ $version == *"$VERSION"* ]]; then | ||
pip install pylint==2.12.0 | ||
fi | ||
|
||
# The trick to remove deleted files: https://stackoverflow.com/a/2413151 | ||
for file in $(git diff --name-status | awk '$1 != "D" {print $2}'); do | ||
pylint --disable=all --load-plugins=docstring_checker \ | ||
--enable=doc-string-one-line,doc-string-end-with,doc-string-with-all-args,doc-string-triple-quotes,doc-string-missing,doc-string-indent-error,doc-string-with-returns,doc-string-with-raises $file; | ||
TOTAL_ERRORS=$(expr $TOTAL_ERRORS + $?); | ||
done | ||
|
||
exit $TOTAL_ERRORS | ||
#For now, just warning: | ||
#exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.