This is an automated email from the ASF dual-hosted git repository.
Aman-Mittal pushed a change to branch main
in repository
https://gitbox.apache.org/repos/asf/fineract-business-intelligence.git
from 5a7a8b2 Merge pull request #56 from
apache/dependabot/pip/pytest-mock-gte-3.15.1-and-lt-4.0.0
add d266820 Add ruff, sqlfluff, and shellcheck linting with CI
integration, fixing bugs the linters surfaced
add 67f61bf Add missing Apache license header to .sqlfluffignore
new 0b989e7 Merge pull request #65 from
airajena/chore/bi-linting-and-quality-gates
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
.github/workflows/ci.yml | 24 +++++++
docker/dbt/Dockerfile => .sqlfluff | 25 ++++---
extractor/__init__.py => .sqlfluffignore | 5 +-
.../intermediate/int_loan_delinquency_status.sql | 61 +++++++++-------
dbt/models/marts/dimensions/dim_date.sql | 26 +++----
.../marts/dimensions/dim_delinquency_bucket.sql | 38 +++++-----
dbt/models/marts/dimensions/dim_office.sql | 2 +-
dbt/models/marts/facts/fact_delinquency_event.sql | 50 ++++++-------
dbt/models/marts/facts/fact_loan_snapshot.sql | 21 +++---
dbt/models/staging/stg_m_client.sql | 10 +--
dbt/models/staging/stg_m_currency.sql | 6 +-
dbt/models/staging/stg_m_delinquency.sql | 23 +++---
dbt/models/staging/stg_m_loan.sql | 6 +-
dbt/models/staging/stg_m_loan_transaction.sql | 12 ++--
dbt/models/staging/stg_m_office.sql | 8 +--
dbt/models/staging/stg_m_product_loan.sql | 4 +-
...t_borrower_count_never_exceeds_transactions.sql | 7 +-
.../assert_collection_efficiency_within_bounds.sql | 5 +-
.../assert_marts_have_no_orphan_dimension_keys.sql | 10 +--
dbt/tests/assert_no_future_dated_facts.sql | 10 +--
dbt/tests/assert_no_negative_amounts_or_counts.sql | 35 ++++-----
...ssert_par_components_never_exceed_portfolio.sql | 13 ++--
dbt/tests/assert_par_hierarchy_never_violated.sql | 9 +--
dbt/tests/assert_par_ratios_within_bounds.sql | 9 +--
...sert_repayment_components_dont_exceed_total.sql | 12 ++--
.../initdb/001_init_fineract_databases.sh | 2 +-
docker/superset/bootstrap_superset_assets.py | 83 +++++++++++++---------
docker/superset/bootstrap_superset_security.py | 3 +-
extractor/config.py | 2 +-
extractor/extractor.py | 23 +++---
extractor/watermark_manager.py | 10 +++
docker/superset/Dockerfile => pyproject.toml | 11 ++-
requirements-dev.txt | 2 +
scripts/bootstrap_source.sh | 2 -
scripts/check_licenses.py | 2 +-
scripts/common.sh | 1 +
scripts/run_pipeline.sh | 8 +--
scripts/stop_fineract_backend.sh | 2 +-
scripts/verify_extraction.sh | 8 ++-
tests/unit/extractor/test_cob_gate.py | 10 +--
tests/unit/extractor/test_config.py | 4 +-
tests/unit/extractor/test_helpers.py | 11 +--
tests/unit/extractor/test_source_query.py | 4 +-
tests/unit/extractor/test_watermark.py | 72 ++++++++++++++++---
tests/unit/superset/test_build_layout.py | 7 +-
45 files changed, 415 insertions(+), 283 deletions(-)
copy docker/dbt/Dockerfile => .sqlfluff (64%)
copy extractor/__init__.py => .sqlfluffignore (78%)
copy docker/superset/Dockerfile => pyproject.toml (86%)