Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dependency Upgrades #7

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ models/metrics/metrics_test
models/metrics/semantic_manifest.json
semantic_manifest
dbt-core/
.user.yml
.user.yml
.python-version
14 changes: 3 additions & 11 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,16 @@ repos:
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
- repo: https://github.com/pre-commit/mirrors-eslint
rev: v8.34.0
hooks:
- id: eslint
- repo: https://github.com/sqlfluff/sqlfluff
rev: "2.0.0a4"
rev: "3.0.5"
hooks:
- id: sqlfluff-lint
additional_dependencies:
["dbt-duckdb==1.4.0", "sqlfluff-templater-dbt==2.0.0a4"]
["dbt-duckdb==1.7.4", "sqlfluff-templater-dbt==3.0.5"]
- id: sqlfluff-fix
additional_dependencies:
["dbt-duckdb==1.4.0", "sqlfluff-templater-dbt==2.0.0a4"]
["dbt-duckdb==1.7.4", "sqlfluff-templater-dbt==3.0.5"]
- repo: https://github.com/psf/black
rev: "23.1.0"
hooks:
- id: black
# - repo: https://github.com/pre-commit/mirrors-prettier
# rev: "" # Use the sha or tag you want to point at
# hooks:
# - id: prettier
15 changes: 7 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,16 @@ This project uses devcontainers. Learn how to integrate devcontainers with your

This project is optimized for running in a container. If you'd like to use it locally outside of container you'll need to follow the instructions below.

1. Create a python virtual environment and install the dependencies.
1. Install [Poetry](https://python-poetry.org/)

2. Install project's dependencies by running:
```console
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
python3 -m poetry install --with=dev
poetry run dbt deps
poetry run pre-commit install
```

4. Install dbt dependencies and build the dbt project.

3. Build the dbt project by running:
```console
dbt deps
dbt build
poetry run dbt build
```
4 changes: 2 additions & 2 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ version: "3"
tasks:
deps:
cmds:
- python -m pip install --progress-bar off -r requirements.txt
- dbt deps
- python -m poetry install --with=dev
- python -m poetry run dbt deps
6 changes: 3 additions & 3 deletions package-lock.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
packages:
- package: dbt-labs/dbt_utils
version: 1.0.0
version: 1.1.1
- package: calogica/dbt_date
version: 0.7.2
sha1_hash: cbc2e0bc40cab400d43245bcfa8ce04f099c1610
version: 0.10.1
sha1_hash: 715cf4f080963b1caeede380841a28187d9e8d42
6 changes: 3 additions & 3 deletions packages.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
packages:
- package: dbt-labs/dbt_utils
version: 1.0.0
version: [">=1.1.1", "<1.2.0"]
- package: calogica/dbt_date
version: [">=0.7.0", "<0.8.0"]
# <see https://github.com/calogica/dbt-date/releases/latest> for the latest version tag
version: [">=0.10.0", "<0.11.0"]
# <see https://github.com/calogica/dbt-date/releases/latest> for the latest version tag
1,934 changes: 1,934 additions & 0 deletions poetry.lock

Large diffs are not rendered by default.

22 changes: 22 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
[tool.poetry]
name = "jaffle-sl-testing"
version = "0.1.0"
description = "Testing dbt project for the Semantic Layer"
authors = ["Your Name <[email protected]>"]
readme = "README.md"
package-mode = false

[tool.poetry.dependencies]
python = "^3.12"
dbt-core = ">=1.7.0,<1.8.0"

[tool.poetry.group.dev.dependencies]
dbt-duckdb = "^1.7.4"
duckcli = "^0.2.1"
sqlfluff = "^3.0.5"
sqlfluff-templater-dbt = "^3.0.5"
pre-commit = "^3.7.0"

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
6 changes: 0 additions & 6 deletions requirements.txt

This file was deleted.