Skip to content

Commit b326ed8

Browse files
committed
Precommit fixes
1 parent 39a6bda commit b326ed8

2 files changed

Lines changed: 5 additions & 12 deletions

File tree

elementary/monitor/cli.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -380,8 +380,7 @@ def monitor(
380380
if not success:
381381
sys.exit(1)
382382
except Exception as exc:
383-
anonymous_tracking.track_cli_exception(
384-
Command.MONITOR, exc, ctx.command.name)
383+
anonymous_tracking.track_cli_exception(Command.MONITOR, exc, ctx.command.name)
385384
raise
386385

387386

@@ -478,8 +477,7 @@ def report(
478477
if not generated_report_successfully:
479478
sys.exit(1)
480479
except Exception as exc:
481-
anonymous_tracking.track_cli_exception(
482-
Command.REPORT, exc, ctx.command.name)
480+
anonymous_tracking.track_cli_exception(Command.REPORT, exc, ctx.command.name)
483481
raise
484482

485483

@@ -774,7 +772,7 @@ def debug(ctx, profiles_dir):
774772
@click.pass_context
775773
def dbt_init(ctx):
776774
"""
777-
Initializes the Elementary internal dbt project by installing its dbt deps.
775+
Initializes the Elementary internal dbt project by installing its dbt deps.
778776
Run this command after installing EDR as part of builds or CI/CD pipelines when the target
779777
environment does not have write permissions on disk or does not have internet connection.
780778
This command is not needed in most cases as the dbt deps are installed automatically when running `edr monitor`.
@@ -786,9 +784,7 @@ def dbt_init(ctx):
786784
success = dbtinit.setup_internal_dbt_packages()
787785
if not success:
788786
sys.exit(1)
789-
click.echo(
790-
"Elementary internal dbt project has been initialized successfully. "
791-
)
787+
click.echo("Elementary internal dbt project has been initialized successfully. ")
792788
anonymous_tracking.track_cli_end(Command.DEBUG, None, ctx.command.name)
793789

794790

elementary/monitor/dbt_init.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
from elementary.clients.dbt.factory import create_dbt_runner
2-
from elementary.config.config import Config
32
from elementary.monitor import dbt_project_utils
43

54

@@ -16,7 +15,5 @@ def setup_internal_dbt_packages(self):
1615
It intentionally does not use self.config.run_dbt_deps_if_needed parameter in create_dbt_runner to ensure
1716
that dbt deps is always run when setting up the internal dbt packages.
1817
"""
19-
dbt_runner = create_dbt_runner(
20-
dbt_project_utils.CLI_DBT_PROJECT_PATH
21-
)
18+
dbt_runner = create_dbt_runner(dbt_project_utils.CLI_DBT_PROJECT_PATH)
2219
return dbt_runner.deps()

0 commit comments

Comments
 (0)