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

Handle projects without Python #1476

Merged
merged 3 commits into from
May 2, 2024
Merged

Handle projects without Python #1476

merged 3 commits into from
May 2, 2024

Conversation

mmarchetti
Copy link
Contributor

Intent

This PR makes the Python packages view handle configurations without Python.

Fixes #1466

Type of Change

    • Bug Fix
    • New Feature
    • Breaking Change
    • Documentation
    • Refactor
    • Tooling

Approach

The API endpoint handles cfg.Python being nil and returns an appropriate status code. The Python Packages view uses this to display a separate welcome.

Automated Tests

Added a test for the new case in the API unit tests.

Directions for Reviewers

Open a project that doesn't use Python, and expand the Python Packages treeview.

sagerb
sagerb previously approved these changes May 2, 2024
Copy link
Collaborator

@sagerb sagerb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have merged this branch into my branch and validated it. I've got a dependency on this, so with my approval (the code looks good as well), I'm going to go ahead and merge it tonight, so I can get mine unblocked.

I had some small bumps in that I was trying to get too smart and just update the configuration file without a python section for a python project. It's great to see that we're smarter than that!

@sagerb sagerb self-requested a review May 2, 2024 21:59
@sagerb sagerb dismissed their stale review May 2, 2024 22:08

I found issues after

Copy link
Collaborator

@sagerb sagerb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@sagerb sagerb merged commit ca84e02 into main May 2, 2024
16 checks passed
@sagerb sagerb deleted the mm-quarto-no-python branch May 2, 2024 23:31
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.

Quarto Projects: If no requirements.txt file is found an error is thrown
2 participants