https://github.com/NVIDIA/DIGITS
Raw File
Tip revision: d3d6e323802b9f58a0d24d1411d40c72798095c2 authored by Cliff Woolley on 10 April 2020, 21:50:53 UTC
Update psutil
Tip revision: d3d6e32
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