-
Notifications
You must be signed in to change notification settings - Fork 69
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
Bump clang-format and ruff versions to latest #496
Conversation
4dc7f70
to
5a9a1bd
Compare
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.
Thanks!
DefineCustomVariable("duckdb.autoload_known_extensions", | ||
"Whether known extensions are allowed to be automatically loaded when a DuckDB query depends on them", | ||
&duckdb_autoload_known_extensions, PGC_SUSET); | ||
DefineCustomVariable( |
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.
Interesting that the other in this file weren't changed?
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.
agreed, I guess the description was not long enough. Probably we want to tweak the clang-format settings to format these consistently, but let's save that for a follow up PR.
In #496 I failed to include the `.hpp` in my clang-format run. This does that too, and updates our `format-all` rule accordingly.
In #496 I failed to include the `.hpp` in my clang-format run. This does that too, and updates our `format-all` rule accordingly.
In #496 we started using the newest clang-format to format our files, but CI was still installing the old version. This meant that we were not catching some unformatted files correctly. An example of this being: #511 (comment) This starts using the correct clang-format version in CI too and formats any incorrectly formatted files.
In #496 we started using the newest clang-format to format our files, but CI was still installing the old version. This meant that we were not catching some unformatted files correctly. An example of this being: #511 (comment) This starts using the correct clang-format version in CI too and formats any incorrectly formatted files.
In #98 we started using the same version of clang-format that DuckDB uses. That version is pretty ancient though. So it misses a bunch of features that we might want to use, and also has a bunch of bugs which result in sub-optimal formatting. This updates
clang-format
to the latest version, and while we're at it we also updateruff
.To be able to reformat all existing files, this also adds a
format-all
target to ourMakefile
.The problem was called out by @dpxcc in #493, but I've been also running into this myself for a while.