4d1d7a9bb5
1. Remove the usage of the path.join function now that all code should be going through the util file methods (and they can be mocked out as needed). 2. Adjust all occurences of the above join function to either not use it or replace it with the standard os.path.join (which can also be mocked out as needed) 3. Fix pylint from complaining about the tests folder 'helpers.py' not being found 4. Add a pylintrc file that is used instead of the options hidden in the 'run_pylint' tool.
26 lines
334 B
Bash
Executable File
26 lines
334 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [ $# -eq 0 ]; then
|
|
files=( $(find * -name "*.py" -type f) )
|
|
else
|
|
files=( "$@" );
|
|
fi
|
|
|
|
RC_FILE="pylintrc"
|
|
if [ ! -f $RC_FILE ]; then
|
|
RC_FILE="../pylintrc"
|
|
fi
|
|
|
|
cmd=(
|
|
pylint
|
|
--rcfile=$RC_FILE
|
|
--disable=R
|
|
--disable=I
|
|
"${files[@]}"
|
|
)
|
|
|
|
echo -e "\nRunning pylint:"
|
|
echo "${cmd[@]}"
|
|
"${cmd[@]}"
|
|
|