Skip to content

Instantly share code, notes, and snippets.

@tuanchris
Created August 21, 2021 09:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tuanchris/15bad9a881a48f39da36012ec3eb7eab to your computer and use it in GitHub Desktop.
Save tuanchris/15bad9a881a48f39da36012ec3eb7eab to your computer and use it in GitHub Desktop.
- name: Lint with sqlfluff
run: |
pip install sqlfluff
sqlfluff lint
# Linting only modified models
# git fetch origin main:main
# git diff main --name-only --diff-filter=d | egrep '^models/.*sql$$' | xargs -r sqlfluff lint
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment