Skip to content

Commit

Permalink
chore: update black
Browse files Browse the repository at this point in the history
  • Loading branch information
datnguye committed Apr 3, 2024
1 parent 3283605 commit 7c03bd0
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 32 deletions.
8 changes: 5 additions & 3 deletions dbterd/adapters/algos/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,9 +212,11 @@ def get_table(
table=(
manifest_node.identifier.lower()
if hasattr(manifest_node, "identifier")
else manifest_node.alias.lower()
if hasattr(manifest_node, "alias")
else node_name
else (
manifest_node.alias.lower()
if hasattr(manifest_node, "alias")
else node_name
)
),
),
),
Expand Down
8 changes: 5 additions & 3 deletions dbterd/adapters/targets/dbml/dbml_test_relationship.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,11 @@ def parse(manifest: Manifest, catalog: Catalog, **kwargs) -> str:
' "{0}" "{1}"{2}',
x.name,
x.data_type,
str.format(" [note: {0}]", json.dumps(x.description))
if x.description
else "",
(
str.format(" [note: {0}]", json.dumps(x.description))
if x.description
else ""
),
)
for x in table.columns
]
Expand Down
61 changes: 36 additions & 25 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ dbt-core = "^1.7.11"
dbt-postgres = "^1.7.11"
pytest = "^6.2.5"
pytest-sugar = "^0.9.6"
black = "^22.10.0"
black = "^24.3.0"
coverage = {version = "^6.5.0", extras = ["toml"]}
poethepoet = "^0.16.4"
pre-commit = "^2.20.0"
Expand Down

0 comments on commit 7c03bd0

Please sign in to comment.