diff --git a/.github/workflows/pull-request.yaml b/.github/workflows/pull-request.yaml new file mode 100644 index 00000000..29495859 --- /dev/null +++ b/.github/workflows/pull-request.yaml @@ -0,0 +1,17 @@ +name: Lint + +on: [push, pull_request] + +jobs: + sqlfluff: + name: SQLFluff + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-python@v4 + with: + python-version: "3.9" + - name: Install SQLFluff + run: pip install sqlfluff + - name: Run SQLFluff + run: sqlfluff lint . diff --git a/.sqlfluff b/.sqlfluff new file mode 100644 index 00000000..a72d5d80 --- /dev/null +++ b/.sqlfluff @@ -0,0 +1,4 @@ +[sqlfluff] +dialect = ansi +exclude_rules = L046, RF02, RF06 +max_line_length = 120