Skip to content

Commit

Permalink
Add medals
Browse files Browse the repository at this point in the history
  • Loading branch information
jochemvandooren committed May 27, 2024
1 parent 7050680 commit f348d4e
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/dbt_score/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,22 @@ class Config:
"""Configuration for dbt-score."""

_main_section: Final[str] = "tool.dbt-score"
_options: Final[list[str]] = ["rule_namespaces", "disabled_rules"]
_options: Final[list[str]] = [
"rule_namespaces",
"disabled_rules",
"bronze_medal_threshold",
"silver_medal_threshold",
"gold_medal_threshold",
]
_rules_section: Final[str] = f"{_main_section}.rules"

def __init__(self) -> None:
"""Initialize the Config object."""
self.rule_namespaces: list[str] = ["dbt_score.rules", "dbt_score_rules"]
self.disabled_rules: list[str] = []
self.bronze_medal_threshold: float = 7.0
self.silver_medal_threshold: float = 8.0
self.gold_medal_threshold: float = 9.0
self.rules_config: dict[str, RuleConfig] = {}
self.config_file: Path | None = None

Expand Down

0 comments on commit f348d4e

Please sign in to comment.