Skip to content

fix(cli): declare PyYAML as a dependency - #2397

Open
dobsontom wants to merge 2 commits into
elementary-data:masterfrom
dobsontom:declare-pyyaml
Open

dobsontom wants to merge 2 commits into
elementary-data:masterfrom
dobsontom:declare-pyyaml

Conversation

@dobsontom

@dobsontom dobsontom commented Oct 19, 2026 •

Copy link
Copy Markdown

This PR adds PyYAML to the CLI's dependencies. command_line_dbt_runner.py imports it, and it used to arrive with dbt-core, so edr has failed on startup without it since 0.26.1 made dbt-core optional. The >=6.0 floor is what dbt-core required.

Closes #2398

Summary by CodeRabbit

  • Chores
    • Updated an underlying application requirement. This change does not affect visible features or user-facing behavior. The application’s functionality and experience remain unchanged in this release. No user-facing changes are included.

@github-actions

Copy link
Copy Markdown
Contributor

👋 @dobsontom
Thank you for raising your pull request.
Please make sure to add tests and document all user-facing changes.
You can do this by editing the docs files in this pull request.

@coderabbitai

coderabbitai Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The required dependencies now include PyYAML, with a minimum version of 6.0.

Changes: PyYAML dependency

Layer / File(s) Summary
Declare PyYAML dependency
pyproject.toml
The required dependencies include PyYAML version 6.0 or later.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Change: Bug fix · Severity of issue fixed: Medium

Suggested reviewers: haritamar

Merge Risk: Minimal · up to 9e8a8

This declares PyYAML as a required dependency so edr starts without it being installed indirectly. No merge-blocking risk remains.

Architecture risk: Low · up to 2ddb5

The change affects 1 system.

Changed systems: pyproject.toml

Architecture concerns
No architecture-level concerns identified.

Review details

Systems and components

  • observed — pyproject.toml (service) was modified; 1 changed file maps to changed impact.

Before / after behavior

  • observed — Modified behavior in pyproject.toml: Added pyyaml to the required dependencies, constrained to version 6.0 or later.
Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names the main change: PyYAML is now declared as a dependency in the CLI, which matches the pyproject.toml change that adds pyyaml>=6.0. The title uses the conventional fix(cli) prefix and i…
Linked Issues check Passed Issue #2398 requires that PyYAML be declared as a dependency of elementary-data so that edr starts without a separately installed PyYAML. At the reviewed head, pyproject.toml declares `pyyaml = ">…
Out of Scope Changes check Passed The supplied change summary reports a single one-line change (+1/-0) in pyproject.toml: adding pyyaml >= 6.0 as a required dependency. This directly implements #2398. The floor >=6.0 matches the…
Full details: Title check

Explanation

The title names the main change: PyYAML is now declared as a dependency in the CLI, which matches the pyproject.toml change that adds pyyaml>=6.0. The title uses the conventional fix(cli) prefix and is concise, so it describes the primary change clearly.

Full details: Linked Issues check

Explanation

Issue #2398 requires that PyYAML be declared as a dependency of elementary-data so that edr starts without a separately installed PyYAML. At the reviewed head, pyproject.toml declares pyyaml = ">=6.0" under [tool.poetry.dependencies] as a required (non-optional) dependency. This satisfies the acceptance criterion. elementary/clients/dbt/command_line_dbt_runner.py imports yaml at module level, so the declared dependency covers that import. The issue does not request dbt or warehouse changes, and none are present. The change is a dependency declaration, so no automated test is required by the issue. The whole-PR diff tool was unavailable, so the +1/-0 scope comes from the supplied change summary. The head file content confirms the declaration.

Full details: Out of Scope Changes check

Explanation

The supplied change summary reports a single one-line change (+1/-0) in pyproject.toml: adding pyyaml >= 6.0 as a required dependency. This directly implements #2398. The floor >=6.0 matches the constraint that dbt-core previously imposed, as stated in the PR description. No unrelated code, dependency, or dbt/warehouse change was identified in the supplied evidence. The whole-PR text diff could not be read, so this verdict relies on the change summary and the head file content.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 359e13cc-d94c-457d-a920-faf95ded391e
Commits

Reviewing files that changed from the base of the PR and between 2ddb5dc and 9e8a838.

Files selected for processing: 1

  • pyproject.toml

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review.

@dobsontom

Copy link
Copy Markdown
Author

Same here, the workflow run needs approving before the tests can run. Happy to change anything.

@jonlevine7

jonlevine7 commented Dec 6, 2026 •

Copy link
Copy Markdown

✅ Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
✅ Open Source Security 0 0 0 0 0 issues
✅ Licenses 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

This branch had an error being deployed

1 failed (outdated) deployment
elementary_test_env — 2ddb5dc0 Deployed Oct 19, 2026 by dobsontom via approve-fork #2721
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

edr fails to start without PyYAML, which it imports but doesn't declare

3 participants