This Bash script goes through every file in /app directory.
Here is the tree hirarchy
/app
_/a
-/b
-/test/unittest/python/test.py
Problem is,,, I don't want to execute lint step. How do I exclude test directory?
...
for file in $(find /app -name '*.py'); do
filename=$(basename $file)
if [[ $filename != "__init__.py" ]] ; then
echo "$file"
pylint "${file}" --rcfile="${lint_path}" || exit 1
fi
done
This is a way to solve the problem not sure if it's right. not working!
$(find /app -name '*.py' -not -path '*test*')