Skip to content

concur1/sqruff-pre-commit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sqruff-pre-commit

A pre-commit hook for Sqruff.

Using sqruff with pre-commit

To run Sqruff's linter and formatter via pre-commit, add the following to your .pre-commit-config.yaml:

repos:
- repo: https://github.com/concur1/sqruff-pre-commit
  # Ruff version.
  rev: v0.17.0
  hooks:
    # Run the formatter.
    - id: sqruff-fix
    # Run the linter.
    - id: sqruff-lint