feat: add support for global config flag#698
Merged
tconbeer merged 2 commits intoJul 28, 2025
Merged
Conversation
Pass `--config` to manually set a config file. I've opted to assert that this file exists and skip any searching for a pyproject.toml otherwise. You can also set the config file via the `SQLFMT_CONFIG` env var.
Owner
|
thanks so much for this PR! I've been traveling and am working to catch up on everything now -- will try to get to this in the next week. |
tconbeer
requested changes
Jul 23, 2025
tconbeer
left a comment
Owner
There was a problem hiding this comment.
This looks amazing - thanks so much for the thorough implementation and tests!
Could you please add an entry to CHANGELOG.md? Then we can merge and ship this.
Contributor
Author
|
Sounds good @tconbeer! I can also push an update to the docs repo if you'd like |
Owner
|
Yes, that would be incredibly helpful. Thank you so much |
bradykieffer
added a commit
to bradykieffer/sqlfmt-docs
that referenced
this pull request
Jul 28, 2025
Contributor
Author
|
Perfect! That's in #698 |
Owner
|
Thanks, @bradykieffer ! |
tconbeer
pushed a commit
to tconbeer/sqlfmt-docs
that referenced
this pull request
Jul 28, 2025
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pass
--configto manually set a config file. I've opted to assert that this file exists and skip any searching for a pyproject.toml otherwise. You can also set the config file via theSQLFMT_CONFIGenv var.Closes: #671