Skip to content

Commit

Permalink
[NOREF] sqlfluff targets migrations after v180 (#1538)
Browse files Browse the repository at this point in the history
* feat: add regex to lint sql migrations after V180

* feat: add comments about regex to exclude original migrations

* chore: comment out APP_DIR to accomodate the shell lint
  • Loading branch information
StevenWadeOddball authored Dec 12, 2024
1 parent 683b07b commit 39a432c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,13 @@ repos:
rev: 3.2.5
hooks:
- id: sqlfluff-fix
exclude: ^migrations/
# Exclude SQL files in the migrations folder with version numbers V0 to V180.
# Matches single-digit (e.g., V0), two-digit (e.g., V99), and three-digit (e.g., V180) versions.
exclude: 'migrations/V([0-9]{1,2}|1[0-7][0-9]|180)__'
- id: sqlfluff-lint
exclude: ^migrations/
# Exclude SQL files in the migrations folder with version numbers V0 to V180.
# Matches single-digit (e.g., V0), two-digit (e.g., V99), and three-digit (e.g., V180) versions.
exclude: 'migrations/V([0-9]{1,2}|1[0-7][0-9]|180)__'

- repo: local
hooks:
Expand Down

0 comments on commit 39a432c

Please sign in to comment.