-
Notifications
You must be signed in to change notification settings - Fork 197
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: enable pylint add helpful messages
- Loading branch information
Showing
2 changed files
with
11 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,5 @@ | ||
#! /bin/bash | ||
# execute pylint on the source | ||
|
||
pylint_exec=$(which pylint 2>/dev/null) | ||
|
||
[[ $? != 0 ]] && { echo >&2 "pylint not found. Aborting."; exit 1; } | ||
|
||
set -e | ||
|
||
export PYTHONPATH=plot_app | ||
python $pylint_exec tornado_handlers/*.py serve.py \ | ||
plot_app/*.py download_logs.py | ||
|
||
exit 0 | ||
PYTHONPATH=plot_app pipenv run pylint serve.py \ | ||
download_logs.py \ | ||
tornado_handlers/*.py \ | ||
plot_app/*.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,14 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
echo "[$(date)] Starting tests." | ||
|
||
echo "[$(date)] Validating python dependency match" | ||
# Check requirements lock file | ||
pipenv lock --requirements > local-requirements.txt | ||
cmp --silent requirements.txt local-requirements.txt || echo "ERROR: Pipenv.lock difers from requirements.txt" | ||
cmp --silent requirements.txt local-requirements.txt || echo "[$(date)] ERROR: Pipenv.lock difers from requirements.txt" | ||
|
||
# Check pylint | ||
# TODO: fix pylint on source and enable | ||
#bash run_pylint.sh | ||
echo "[$(date)] Running pylint" | ||
bash run_pylint.sh | ||
|
||
echo "[$(date)] End of test script." |