Local lock file update improvement

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Unresolved
    • Priority: Unknown
    • None
    • Affects Version/s: None
    • Component/s: greenerbuild
    • None
    • None
    • Python Drivers
    • None
    • None
    • None
    • None
    • None
    • None

      Context

      Currently, when a dependabot PR fails, our instructions tell you to pull the PR and re-lock the file locally. However, uv does not recognize the change in one of our requirements files unless you run {{uv pip install -e. }} first, because we have dynamic dependencies.
      I propose a new script that does the following:

      gh pr checkout $1
      uv pip install -e .
      uv lock
      git add uv.lock -m "Update lock file"
      git push
      

      Definition of done

      Add the script and update the contributing guide.

      Pitfalls

      None

            Assignee:
            Unassigned
            Reporter:
            Steve Silvester
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: