Revision 7a3d5f00f3ef0e81cdc3415b03c6ede98c3ef91c authored by Isaac Yang on 05 April 2018, 20:34:58 UTC, committed by GitHub on 05 April 2018, 20:34:58 UTC
2 parent s 85e4d64 + 61224fa
Raw File
digits-lint
#!/bin/bash
# Copyright (c) 2016-2017, NVIDIA CORPORATION.  All rights reserved.

set -e

echo "=== Checking for Python lint ..."
if which flake8 >/dev/null 2>&1; then
    python2 `which flake8` --exclude ./digits/jobs .
else
    python2 -m flake8 --exclude ./digits/jobs .
fi

echo "=== Checking for JavaScript lint ..."
gjslint --flagfile .gjslintrc --recurse .

echo "=== No lint found."
back to top