ClickHouse/utils/check-style/check_py.sh

23 lines
726 B
Bash
Raw Normal View History

2024-03-09 20:38:23 +00:00
#!/bin/bash
cd /ClickHouse/utils/check-style || echo -e "failure\tRepo not found" > /test_output/check_status.tsv
start_total=`date +%s`
2024-03-09 20:38:23 +00:00
# FIXME: 1 min to wait + head checkout
2024-03-11 12:07:39 +00:00
echo "Check python formatting with black" | ts
./check-black -n |& tee /test_output/black_output.txt
2024-03-09 20:38:23 +00:00
start=`date +%s`
2024-03-09 20:38:23 +00:00
./check-pylint -n |& tee /test_output/pylint_output.txt
runtime=$((`date +%s`-start))
echo "Check pylint. Done. $runtime seconds."
2024-03-09 20:38:23 +00:00
start=`date +%s`
2024-03-09 20:38:23 +00:00
./check-mypy -n |& tee /test_output/mypy_output.txt
runtime=$((`date +%s`-start))
echo "Check python type hinting with mypy. Done. $runtime seconds."
runtime=$((`date +%s`-start_total))
echo "Check python total. Done. $runtime seconds."