Skip to content

Commit

Permalink
Merge pull request #2 from cowprotocol/sqlfluff
Browse files Browse the repository at this point in the history
Configure linter
  • Loading branch information
fleupold authored Aug 26, 2024
2 parents 8f72a37 + 1e9c97b commit ad9ade5
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/pull-request.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Lint
on:
pull_request:
push:
branches: [main]
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 .
4 changes: 4 additions & 0 deletions .sqlfluff
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[sqlfluff]
dialect = ansi
exclude_rules = L046, RF02, RF06
max_line_length = 120

0 comments on commit ad9ade5

Please sign in to comment.