fix: linting and ci issues

This commit is contained in:
Stijnvandenbroek
2026-03-04 10:17:20 +00:00
parent 0a0f9d711b
commit 5f23d02fcb
7 changed files with 22 additions and 22 deletions

View File

@@ -62,7 +62,7 @@ jobs:
- name: Prettier check - name: Prettier check
run: | run: |
prettier --check \ prettier --check \
"**/*.yml" "**/*.yaml" "**/*.json" "**/*.md" \ "**/*.yml" "**/*.yaml" "**/*.md" \
--ignore-path .prettierignore --ignore-path .prettierignore
# ── Tests ──────────────────────────────────────────────────────────────── # ── Tests ────────────────────────────────────────────────────────────────

View File

@@ -4,6 +4,7 @@ dbt/dbt_packages/
.venv/ .venv/
dist/ dist/
*.egg-info/ *.egg-info/
.pytest_cache/
# Dagster storage # Dagster storage
dagster_home/storage/ dagster_home/storage/

View File

@@ -3,7 +3,8 @@ templater = jinja
dialect = postgres dialect = postgres
max_line_length = 100 max_line_length = 100
# Exclude generated/vendor paths # Exclude generated/vendor paths
exclude_rules = RF05 # don't require quoted identifiers # Don't require quoted identifiers
exclude_rules = RF05
output_line_length = 120 output_line_length = 120
[sqlfluff:templater:jinja] [sqlfluff:templater:jinja]

View File

@@ -95,15 +95,15 @@ lint-python: ## Ruff lint + format check
lint-sql: ## SQLFluff lint on dbt/models lint-sql: ## SQLFluff lint on dbt/models
uv run sqlfluff lint dbt/models --dialect postgres uv run sqlfluff lint dbt/models --dialect postgres
lint-format: ## Prettier check (YAML / JSON / Markdown) lint-format: ## Prettier check (YAML / Markdown)
npx --yes prettier --check "**/*.yml" "**/*.yaml" "**/*.json" "**/*.md" \ npx --yes prettier --check "**/*.yml" "**/*.yaml" "**/*.md" \
--ignore-path .prettierignore --ignore-path .prettierignore
lint-fix: ## Auto-fix all linters (ruff + sqlfluff + prettier) lint-fix: ## Auto-fix all linters (ruff + sqlfluff + prettier)
uv run ruff check --fix . uv run ruff check --fix .
uv run ruff format . uv run ruff format .
uv run sqlfluff fix dbt/models --dialect postgres uv run sqlfluff fix dbt/models --dialect postgres
npx --yes prettier --write "**/*.yml" "**/*.yaml" "**/*.json" "**/*.md" \ npx --yes prettier --write "**/*.yml" "**/*.yaml" "**/*.md" \
--ignore-path .prettierignore --ignore-path .prettierignore
## —— Pre-commit ──────────────────────────────────────────────── ## —— Pre-commit ────────────────────────────────────────────────

View File

@@ -1,12 +1,12 @@
# data-platform # data-platform
A [Dagster](https://dagster.io/) + [dbt](https://www.getdbt.com/) data platform, A [Dagster](https://dagster.io/) + [dbt](https://www.getdbt.com/) data platform, managed with
managed with [uv](https://github.com/astral-sh/uv) and deployed via Docker Compose. [uv](https://github.com/astral-sh/uv) and deployed via Docker Compose.
## Stack ## Stack
| Layer | Tool | | Layer | Tool |
|---|---| | -------------- | ---------------------------- |
| Orchestration | Dagster (webserver + daemon) | | Orchestration | Dagster (webserver + daemon) |
| Transformation | dbt-core + dbt-postgres | | Transformation | dbt-core + dbt-postgres |
| Storage | PostgreSQL 16 | | Storage | PostgreSQL 16 |

View File

@@ -1,3 +1 @@
from data_platform.definitions import defs """data_platform Dagster + dbt data platform."""
__all__ = ["defs"]