Skip to content

Commit

Permalink
packaging updates (#18)
Browse files Browse the repository at this point in the history
* packaging updates

* symlink sqlfluff config to root dir
  • Loading branch information
dogversioning authored May 17, 2023
1 parent 2ca1b47 commit aa62445
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 30 deletions.
26 changes: 0 additions & 26 deletions .sqlfluff

This file was deleted.

1 change: 1 addition & 0 deletions .sqlfluff
1 change: 0 additions & 1 deletion MANIFEST.in

This file was deleted.

26 changes: 26 additions & 0 deletions cumulus_library/.sqlfluff
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
[sqlfluff]
templater = jinja
dialect = athena
sql_file_exts = .sql,.sql.jinja
# this rule overfires on athena nested arrays
exclude_rules=references.from,structure.column_order
max_line_length = 88

[sqlfluff:indentation]
template_blocks_indent = false

[sqlfluff:rules:layout.long_lines]
ignore_comment_lines = true

[sqlfluff:rules:capitalisation.keywords]
capitalisation_policy = upper

[sqlfluff:templater:jinja:context]
schema_name = test_schema
table_name = test_table
view_or_table_name = test_view_or_table
view_or_table = TABLE
prefix = Test
dataset = [["foo","foo"],["bar","bar"]]
table_cols = ["a","b"]
col_type_list = ["a string","b string"]
2 changes: 1 addition & 1 deletion cumulus_library/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def create_template(path: str) -> None:

copy_lists = [
["studies/template/manifest.toml", "manifest.toml"],
["../.sqlfluff", ".sqlfluff"],
[".sqlfluff", ".sqlfluff"],
]
for source, dest in copy_lists:
source_path = Path(Path(__file__).resolve().parents[0], source)
Expand Down
8 changes: 6 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "cumulus-library"
version = "0.1.0"
version = "0.1.2"
# In order to support 3.12, we wil need to refactor out load_module, which is
# targeted for deprecation in that version.
requires-python = ">= 3.9, <3.12"
Expand All @@ -21,7 +21,6 @@ dependencies = [
description = "Clinical study SQL generation for data derived from bulk FHIR"
readme = "README.md"
license = { text="Apache License 2.0" }
home-page = "https://smarthealthit.org/cumulus-a-universal-sidecar-for-a-smart-learning-healthcare-system/"
keywords = ["FHIR", "SQL", "Health Informatics"]
classifiers = [
"License :: OSI Approved :: Apache Software License",
Expand All @@ -39,12 +38,17 @@ test = [
]

[project.urls]
Home = "https://smarthealthit.org/cumulus-a-universal-sidecar-for-a-smart-learning-healthcare-system/"
Documentation = "https://docs.smarthealthit.org/cumulus/"
Source = "https://github.com/smart-on-fhir/cumulus-library-core"


[project.scripts]
cumulus-library = "cumulus_library.cli:main"

[build-system]
requires = ["flit_core >=3.4,<4"]
build-backend = "flit_core.buildapi"

[tool.flit.sdist]
include = [".sqlfluff"]

0 comments on commit aa62445

Please sign in to comment.