mirror of
https://github.com/QuivrHQ/quivr.git
synced 2024-12-15 01:21:48 +03:00
chore: Update pyproject.toml with venv and basedpyright configuration
This commit is contained in:
parent
2a2f823e7d
commit
af6db28d80
@ -16,4 +16,4 @@ mkdocs:
|
|||||||
# Optionally declare the Python requirements required to build your docs
|
# Optionally declare the Python requirements required to build your docs
|
||||||
python:
|
python:
|
||||||
install:
|
install:
|
||||||
- requirements: backend/requirements.lock
|
- requirements: backend/docs/requirements.lock
|
@ -26,8 +26,21 @@ dev-dependencies = []
|
|||||||
virtual = true
|
virtual = true
|
||||||
|
|
||||||
[tool.rye.scripts]
|
[tool.rye.scripts]
|
||||||
|
venv_create = "uv venv ./.venv"
|
||||||
|
venv_sync= "uv pip sync --python ./.venv/bin/python ./requirements.lock"
|
||||||
|
venv_create_sync = {chain = ["venv_create", "venv_sync"]}
|
||||||
|
check_deps = "basedpyright --project ./pyproject.toml"
|
||||||
docs = "mkdocs serve"
|
docs = "mkdocs serve"
|
||||||
|
|
||||||
|
[tool.basedpyright]
|
||||||
|
include = ["src/"]
|
||||||
|
# Ensure that it uses the .venv that we created for this project with the lockfile
|
||||||
|
venvPath="./"
|
||||||
|
venv=".venv"
|
||||||
|
# We really only care about some import issues, so we disable everything and report on missing imports:
|
||||||
|
typeCheckingMode = "off"
|
||||||
|
reportMissingImports = true
|
||||||
|
|
||||||
|
|
||||||
[tool.hatch.metadata]
|
[tool.hatch.metadata]
|
||||||
allow-direct-references = true
|
allow-direct-references = true
|
||||||
|
Loading…
Reference in New Issue
Block a user