Skip to content

Conversation

@namurphy
Copy link
Member

@namurphy namurphy commented May 2, 2025

The purpose of this PR is to simplify the process of setting up and syncing a virtual environment for contributing to PlasmaPy. In particular, I want it to create a virtual environment (if one doesn't exist) and then sync it with uv.lock.

The Nox cookbook has a recipe to set up a dev environment for a project. Their example uses virtualenv, so I am in the process of adapting it to use a virtual environment set up by uv.

I'm going to need to play around with this to make sure it works well, but I'm hoping this will let us simplify the instructions on getting ready to contribute to PlasmaPy to be (1) install uv and (2) run nox -s dev. This goes along with #3000.

@github-actions github-actions bot added python Pull requests that update Python code nox Related to the nox automation software labels May 2, 2025
@codecov
Copy link

codecov bot commented May 2, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.24%. Comparing base (ae60966) to head (e6e4292).
⚠️ Report is 148 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3001      +/-   ##
==========================================
+ Coverage   94.62%   95.24%   +0.61%     
==========================================
  Files         107      108       +1     
  Lines        9667    11136    +1469     
  Branches     1466     1848     +382     
==========================================
+ Hits         9147    10606    +1459     
+ Misses        327      310      -17     
- Partials      193      220      +27     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@github-actions github-actions bot added the maintenance General updates to package infrastructure label May 2, 2025
@github-actions github-actions bot added the run comprehensive tests Add this label to run comprehensive tests in CI label May 28, 2025
@namurphy
Copy link
Member Author

Tentatively closing this since I'm more inclined to recommend that new contributors use uv directly rather than put an extra layer on it.

@namurphy namurphy closed this Oct 28, 2025
@namurphy namurphy deleted the nox-dev-session branch October 28, 2025 15:28
@namurphy namurphy restored the nox-dev-session branch December 24, 2025 04:24
@namurphy namurphy reopened this Dec 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance General updates to package infrastructure nox Related to the nox automation software python Pull requests that update Python code run comprehensive tests Add this label to run comprehensive tests in CI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant