Skip to content

Commit

Permalink
[EASY] lowercase queries and cleanup leftover correction (#449)
Browse files Browse the repository at this point in the history
This PR switches the convention for sql queries to always use lowercase
for keywords and also removes outdated fix.

---------

Co-authored-by: Felix Henneke <[email protected]>
  • Loading branch information
harisang and fhenneke authored Dec 9, 2024
1 parent 4acb308 commit 471a097
Show file tree
Hide file tree
Showing 6 changed files with 337 additions and 370 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,16 @@ jobs:
NETWORK: 'mainnet'
NODE_URL: https://rpc.ankr.com/eth
PAYOUTS_SAFE_ADDRESS: '0x0000000000000000000000000000000000000000'

sqlfluff:
name: SQLFluff
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.12"
- name: Install SQLFluff
run: pip install sqlfluff
- name: Run SQLFluff
run: sqlfluff lint queries/
4 changes: 4 additions & 0 deletions queries/.sqlfluff
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[sqlfluff]
dialect = postgres
exclude_rules = L046, RF02, RF06, CP02
max_line_length = 0
5 changes: 5 additions & 0 deletions queries/orderbook/.sqlfluff
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[sqlfluff:templater:jinja:context]
start_block=100
end_block=100000000
EPSILON_LOWER=10000000000000000
EPSILON_UPPER=12000000000000000
Loading

0 comments on commit 471a097

Please sign in to comment.