Skip to content

Commit

Permalink
Moving sql queries for variable creation to SQL files (#1063)
Browse files Browse the repository at this point in the history
  • Loading branch information
abelsiqueira authored Mar 4, 2025
1 parent 43bf58e commit aefad2e
Show file tree
Hide file tree
Showing 8 changed files with 676 additions and 607 deletions.
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,6 @@ indent_size = 2

[*.{yml,toml,json}]
indent_size = 2

[*.sql]
indent_size = 4
4 changes: 4 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ repos:
rev: v0.42.0
hooks:
- id: markdownlint-fix
# - repo: https://github.com/sql-formatter-org/sql-formatter
# rev: v15.4.11
# hooks:
# - id: sql-formatter
- repo: https://github.com/citation-file-format/cffconvert
rev: 054bda51dbe278b3e86f27c890e3f3ac877d616c
hooks:
Expand Down
9 changes: 9 additions & 0 deletions .sql-formatter.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"dataTypeCase": "lower",
"functionCase": "lower",
"keywordCase": "lower",
"language": "postgresql",
"logicalOperatorNewline": "before",
"newlineBeforeSemicolon": true,
"tabWidth": 4
}
2 changes: 2 additions & 0 deletions src/TulipaEnergyModel.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
module TulipaEnergyModel

const SQL_FOLDER = joinpath(@__DIR__, "sql")

# Packages

## Data
Expand Down
Loading

0 comments on commit aefad2e

Please sign in to comment.