Add uv lock to pre-commit

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Unknown
    • 4.16.0
    • Affects Version/s: None
    • Component/s: None
    • 🔵 Done
    • Python Drivers
    • Not Needed
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?
    • None
    • None
    • None
    • None
    • None
    • None

      Context

      The reason that the lock file was out of date in PYTHON-5537 was that dependabot had updated the requirements files, leaving the lock file out of sync.
      In langchain-mongodb we use a pre-commit hook to keep the lock file(s) up to date.
      If we added the same, the dependabot PRs would fail, prompting us to update the lock file on the spot. We should update the contributing guide to describe this interaction with dependabot PRs, and recommend using gh pr checkout to help with the process.

      Definition of done

      Add the pre-commit hook and update contributing guide.

      Pitfalls

      None

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

              Created:
              Updated:
              Resolved: