mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-28 10:31:57 +00:00
Simplify checks list in style-check image
This commit is contained in:
parent
0f2704703f
commit
e46f615176
@ -11,17 +11,18 @@ def process_result(result_folder):
|
|||||||
description = ""
|
description = ""
|
||||||
test_results = []
|
test_results = []
|
||||||
checks = (
|
checks = (
|
||||||
("header duplicates", "duplicate_output.txt"),
|
"header duplicates",
|
||||||
("shellcheck", "shellcheck_output.txt"),
|
"shellcheck",
|
||||||
("style", "style_output.txt"),
|
"style",
|
||||||
("black", "black_output.txt"),
|
"black",
|
||||||
("typos", "typos_output.txt"),
|
"typos",
|
||||||
("whitespaces", "whitespaces_output.txt"),
|
"whitespaces",
|
||||||
("workflows", "workflows_output.txt"),
|
"workflows",
|
||||||
("doc typos", "doc_spell_output.txt"),
|
"doc typos",
|
||||||
)
|
)
|
||||||
|
|
||||||
for name, out_file in checks:
|
for name in checks:
|
||||||
|
out_file = name.replace(" ", "_") + "_output.txt"
|
||||||
full_path = os.path.join(result_folder, out_file)
|
full_path = os.path.join(result_folder, out_file)
|
||||||
if not os.path.exists(full_path):
|
if not os.path.exists(full_path):
|
||||||
logging.info("No %s check log on path %s", name, full_path)
|
logging.info("No %s check log on path %s", name, full_path)
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
cd /ClickHouse/utils/check-style || echo -e "failure\tRepo not found" > /test_output/check_status.tsv
|
cd /ClickHouse/utils/check-style || echo -e "failure\tRepo not found" > /test_output/check_status.tsv
|
||||||
echo "Check duplicates" | ts
|
echo "Check duplicates" | ts
|
||||||
./check-duplicate-includes.sh |& tee /test_output/duplicate_output.txt
|
./check-duplicate-includes.sh |& tee /test_output/header_duplicates_output.txt
|
||||||
echo "Check style" | ts
|
echo "Check style" | ts
|
||||||
./check-style -n |& tee /test_output/style_output.txt
|
./check-style -n |& tee /test_output/style_output.txt
|
||||||
echo "Check python formatting with black" | ts
|
echo "Check python formatting with black" | ts
|
||||||
@ -12,7 +12,7 @@ echo "Check python formatting with black" | ts
|
|||||||
echo "Check typos" | ts
|
echo "Check typos" | ts
|
||||||
./check-typos |& tee /test_output/typos_output.txt
|
./check-typos |& tee /test_output/typos_output.txt
|
||||||
echo "Check docs spelling" | ts
|
echo "Check docs spelling" | ts
|
||||||
./check-doc-aspell |& tee /test_output/doc_spell_output.txt
|
./check-doc-aspell |& tee /test_output/doc_typos_output.txt
|
||||||
echo "Check whitespaces" | ts
|
echo "Check whitespaces" | ts
|
||||||
./check-whitespaces -n |& tee /test_output/whitespaces_output.txt
|
./check-whitespaces -n |& tee /test_output/whitespaces_output.txt
|
||||||
echo "Check workflows" | ts
|
echo "Check workflows" | ts
|
||||||
|
Loading…
Reference in New Issue
Block a user