Skip to content

sqlfmt and sqlfluff - linebreaks for SQL keywords #681

@ngmiduc

Description

@ngmiduc

I am have installed sqlfmt and sqlfluff in my python project and both work well. The problem is now that the sqlfluff linting has troubles to accept the sqlfmt formatting style. I already have added the configuration on sqlfluff but there is one issue that sqlfmt always puts smaller queries on a single line and sqlfluff wants to have the where keyword on the next line.

I was looking into the documentation but I couldn't find anything related to linebreaks except the -l parameter. Is there a way to always break lines even if the query is small.

Examples::

select * from source where col is not null

but sqlfluff wants:

select * 
from source 
where col is not null

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions