Skip to content
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

sqlfluff: disable default dialect #310

Merged
merged 1 commit into from
Feb 7, 2025

Conversation

m15a
Copy link
Contributor

@m15a m15a commented Feb 7, 2025

Current programs.sqlfluff.enable = true enforces command-line option --dialect=ansi. This overrides project-level sqlfluff settings; for example, even if I have pyproject.toml with the following setting in a project filled with Databricks SQL files, nix fmt fails:

[tool.sqlfluff.core]
dialect = "databricks"

This PR removes the default option --dialect=ansi.

@m15a m15a force-pushed the sqlfluff-disable-default-dialect branch from 600eaf7 to 4487561 Compare February 7, 2025 15:11
@zimbatm zimbatm merged commit 4f09b47 into numtide:main Feb 7, 2025
3 checks passed
@m15a m15a deleted the sqlfluff-disable-default-dialect branch February 8, 2025 02:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants