docker-compose build
docker-compose up
To install pre-commit simply run inside the shell:
uv run pre-commit install
uv run pre-commit install --hook-type commit-msgpre-commit is very useful to check your code before publishing it.
It's configured using .pre-commit-config.yaml file.
You can read more about pre-commit here: https://pre-commit.com/
-
Build docker container
docker compose build -
Run tests
docker compose run --rm api pytest src/openprocurement/tender/core -x -vvv
-
Update *.http files
docker compose run --rm api pytest docs/tests -x -vvv -
Generate docs
docker compose run --rm api sh -c "cd docs && make html"See docs/build/html for the built doc files
Sync explicitly
uv sync --frozenOr run any command with --frozen option and .venv will be synced automatically.
uv run --frozen pylint .
To add a requirement
uv add httpxor with a constraint
uv add "aiohttp>=3.12,<4"or
uv add aiohttp~=3.12To add dev requirements
uv add pytest-aiohttp~=1.0 --group=devTo add/update requirement with a github source
uv add git+https://github.com/ProzorroUKR/standards.git --rev 1.0.210or by hash itself (tag version also adds hash to the lock file, so I prefer the option above)
uv add git+https://github.com/ProzorroUKR/standards.git --rev 06f4339cf69bddab93a830b387704be5c5ec9d7bTo update all package versions
uv lock --upgradeTo update only one package
uv lock --upgrade-package pymongo==4.14.1Resolved 133 packages in 451ms
Updated pymongo v4.13.1 -> v4.14.1