requirements-typecheck.txt 1.3 KB

1234567891011121314151617181920212223242526
  1. # Input for requirements-typecheck.lock, the pinned environment the backend
  2. # type check (basedpyright) runs in. Not for running Bambuddy.
  3. #
  4. # requirements.txt only sets lower bounds, so a fresh install picks up whatever
  5. # is newest, and library typings (SQLAlchemy above all) change what the checker
  6. # reports. The baseline in .basedpyright/baseline.json is only valid for the
  7. # exact versions in the lock, so CI installs the lock, never requirements.txt.
  8. #
  9. # Added or changed a dependency in requirements.txt? Regenerate requirements.lock
  10. # first (see CONTRIBUTING.md), then this lock, keeping every other pin:
  11. # uv pip compile requirements-typecheck.txt --python-version 3.11 \
  12. # --python-platform x86_64-unknown-linux-gnu -o requirements-typecheck.lock
  13. # If that moves the pin of a package already in the lock and the type check
  14. # then reports errors in code you did not touch, regenerate the baseline as
  15. # below in the same commit.
  16. #
  17. # Refresh all versions (or bump basedpyright) on purpose: the same command with
  18. # --upgrade, then rebuild the venv from the lock and regenerate the baseline:
  19. # basedpyright --pythonpath <venv>/bin/python --writebaseline
  20. # and commit lock and baseline together.
  21. # The same versions that ship (see requirements.lock).
  22. -r requirements.lock
  23. # Exact pin: the baseline is only valid for one checker version.
  24. basedpyright==1.40.2