- uv - Fast Python package manager
- Python 3.10 or higher
- Git
-
Install uv:
curl -LsSf https://astral.sh/uv/install.sh | sh -
Clone the repository:
git clone https://github.com/getyourguide/auto-pr.git cd auto-pr -
Install dependencies:
uv sync --extra dev
This will:
- Create a virtual environment in
.venv/ - Install all dependencies including dev dependencies
- Install the project in editable mode
- Create a virtual environment in
# Run all tests
uv run pytest
# Run with coverage report
uv run pytest --cov-report xml --cov=autopr test/ -v
# Run linting and pre-commit hooks
uv run pre-commit run --all-files# Run auto-pr command directly from source
uv run auto-pr --help
# Or activate the virtual environment and use commands directly
source .venv/bin/activate
auto-pr --help# Build wheel and source distribution
uv build
# The built packages will be in the dist/ directory
ls dist/
# auto_pr-1.2.0-py3-none-any.whl
# auto_pr-1.2.0.tar.gz# Add a new dependency
uv add <package-name>
# Add a dev dependency
uv add --dev <package-name>
# Update lock file
uv lock
# Update a specific package
uv lock --upgrade-package <package-name>uv run pre-commit autoupdateuv run pytest test/test_config.py -vuv run black --check autopr/ test/uv run pytest --cov-report html --cov=autopr test/
open htmlcov/index.htmluv cache cleanrm -rf .venv
uv sync --extra devuv pip listSee CONTRIBUTING.md for guidelines on submitting changes.