forked from ClickHouse/ClickHouse
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request ClickHouse#61148 from ClickHouse/ci_fast_style
CI: style check: conditionally skip cpp or py files check in prs
- Loading branch information
Showing
6 changed files
with
102 additions
and
40 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
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
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
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/bash | ||
|
||
# yaml check is not the best one | ||
|
||
cd /ClickHouse/utils/check-style || echo -e "failure\tRepo not found" > /test_output/check_status.tsv | ||
|
||
start_total=`date +%s` | ||
|
||
start=`date +%s` | ||
./check-typos |& tee /test_output/typos_output.txt | ||
runtime=$((`date +%s`-start)) | ||
echo "Check typos. Done. $runtime seconds." | ||
|
||
start=`date +%s` | ||
./check-doc-aspell |& tee /test_output/docs_spelling_output.txt | ||
runtime=$((`date +%s`-start)) | ||
echo "Check docs spelling. Done. $runtime seconds." | ||
|
||
runtime=$((`date +%s`-start_total)) | ||
echo "Check Docs, total. Done. $runtime seconds." |
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,17 +1,22 @@ | ||
#!/bin/bash | ||
|
||
# yaml check is not the best one | ||
|
||
cd /ClickHouse/utils/check-style || echo -e "failure\tRepo not found" > /test_output/check_status.tsv | ||
|
||
start_total=`date +%s` | ||
|
||
# FIXME: 1 min to wait + head checkout | ||
# echo "Check python formatting with black" | ts | ||
# ./check-black -n |& tee /test_output/black_output.txt | ||
|
||
echo "Check pylint" | ts | ||
start=`date +%s` | ||
./check-pylint -n |& tee /test_output/pylint_output.txt | ||
echo "Check pylint. Done" | ts | ||
runtime=$((`date +%s`-start)) | ||
echo "Check pylint. Done. $runtime seconds." | ||
|
||
echo "Check python type hinting with mypy" | ts | ||
start=`date +%s` | ||
./check-mypy -n |& tee /test_output/mypy_output.txt | ||
echo "Check python type hinting with mypy. Done" | ts | ||
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." |
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