-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Camyllh clickhouse linter #6187
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Skipped Deployment
|
) | ||
|
||
#trying this here since having issues with init_command' | ||
run_command( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Issue is here. I know this command should be in the toml file in init_command but I'm getting various errors when I try and run it in there
21d1241
to
1283197
Compare
) | ||
] | ||
|
||
replacement = proc.stdout |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, this should be proc.stdout.decode("utf-8")
I think as it is used to compare with the original string in the next line
original = f.read() | ||
|
||
try: | ||
proc = run_command( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This command removes the comments from the query. Let me check https://github.com/ClickHouse/ClickHouse for more details. The doc says there is --comments
to keep the comments but it doesn't seem to work for me https://clickhouse.com/docs/en/operations/utilities/clickhouse-format
still in test - creating PR for debugging