Skip to content

Commit 1283197

Browse files
committed
add clickhouse binaries and use s3 init
1 parent 5fb5ccd commit 1283197

File tree

3 files changed

+107
-222
lines changed

3 files changed

+107
-222
lines changed

.lintrunner.toml

+12-9
Original file line numberDiff line numberDiff line change
@@ -340,21 +340,24 @@ is_formatter = true
340340

341341
[[linter]]
342342
code = 'CLICKHOUSE'
343-
include_patterns = ['**/torchci/clickhouse_queries/**/*.sql']
343+
include_patterns = ['torchci/clickhouse_queries/**/*.sql']
344344
exclude_patterns = [
345345
]
346346
command = [
347347
'python3',
348348
'tools/linter/adapters/clickhouse_sql_linter.py',
349-
'--',
350-
'@{{PATHSFILE}}'
349+
'--binary=.lintbin/clickhouse',
350+
'@{{PATHSFILE}}',
351+
]
352+
init_command = [
353+
'python3',
354+
'tools/linter/adapters/s3_init.py',
355+
'--config-json=tools/linter/adapters/s3_init_config.json',
356+
'--linter=clickhouse',
357+
'--dry-run={{DRYRUN}}',
358+
'--output-dir=.lintbin',
359+
'--output-name=clickhouse',
351360
]
352-
# init_command = [
353-
# 'python3',
354-
# 'tools/linter/adapters/pip_init.py',
355-
# '--dry-run={{DRYRUN}}',
356-
# 'clickhouse==0.1.6',
357-
# ]
358361
is_formatter = true
359362

360363
[[linter]]

0 commit comments

Comments
 (0)