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

Support alternate klipper venv paths #154

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

kageurufu
Copy link

@kageurufu kageurufu commented Sep 12, 2024

Summary by Sourcery

Support alternate Klipper virtual environment paths by allowing the path to be set via the KLIPPER_VENV environment variable.

Enhancements:

  • Allow customization of the Klipper virtual environment path by introducing an environment variable KLIPPER_VENV.

Copy link

sourcery-ai bot commented Sep 12, 2024

Reviewer's Guide by Sourcery

This pull request introduces support for alternate Klipper virtual environment paths by modifying the installation script to use an environment variable for the Klipper venv path.

File-Level Changes

Change Details Files
Introduce support for custom Klipper virtual environment paths
  • Replace hardcoded Klipper venv path with an environment variable
  • Use KLIPPER_VENV environment variable if set, otherwise fallback to default path
install.sh

Tips
  • Trigger a new Sourcery review by commenting @sourcery-ai review on the pull request.
  • Continue your discussion with Sourcery by replying directly to review comments.
  • You can change your review settings at any time by accessing your dashboard:
    • Enable or disable the Sourcery-generated pull request summary or reviewer's guide;
    • Change the review language;
  • You can always contact us if you have any questions or feedback.

Copy link

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

Hey @kageurufu - I've reviewed your changes and they look great!

Here's what I looked at during the review
  • 🟢 General issues: all looks good
  • 🟢 Security: all looks good
  • 🟢 Testing: all looks good
  • 🟢 Complexity: all looks good
  • 🟢 Documentation: all looks good

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment to tell me if it was helpful.

@kageurufu
Copy link
Author

ok that sourcery thing is black magic
i need to use it on my projects 🤣

@Frix-x
Copy link
Owner

Frix-x commented Sep 12, 2024

That's a good idea! Do you think it can be worth adding the other variables from ENV vars as well?

And yeah, I just tried Sourcery to see how it would works and found that it's actually giving pretty good review. Not always worth it but sometimes it can find problems and give pretty useful hints to get better code :) So I decided to keep it!

@Frix-x Frix-x changed the base branch from main to develop September 12, 2024 12:00
@kageurufu
Copy link
Author

kageurufu commented Sep 12, 2024 via email

@Frix-x
Copy link
Owner

Frix-x commented Sep 15, 2024

Sure you can do this. I found it was easy to have it separated to just cat moonraker.conf > target.conf, but if you want to fill a template with custom values, you can embed it in the install.sh without any problem.

@kageurufu
Copy link
Author

Done! Lemme know what you think

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.

2 participants