Fix pylint configuration, script and matcher (#491)
* Fix pylint configuration, script and matcher * Makes yapf happy * Fix one-liner docstring * Fix one-liner docstring
This commit is contained in:
committed by
GitHub
parent
12f6ed6e0b
commit
15233dba3e
@@ -13,19 +13,7 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
SUCCESS=0
|
||||
|
||||
# Ensure we are at the project root directory
|
||||
cd $(readlink -f $(dirname $0))/..
|
||||
|
||||
for file in `find . ! -path "./third_party/*" -type f -name '*.py'`
|
||||
do
|
||||
# Output header for our custom matcher on Github workflow
|
||||
echo "PYLINT:${file}"
|
||||
if ! pylint --rcfile=.pylintrc --score=n "$file"
|
||||
then
|
||||
SUCCESS=1
|
||||
fi
|
||||
done
|
||||
|
||||
exit $SUCCESS
|
||||
pylint --score=n `git ls-files --deduplicate --exclude-standard --full-name '*.py'`
|
||||
|
||||
Reference in New Issue
Block a user