Setup¶
This guide covers setting up your development environment for dbx-python-cli.
Prerequisites¶
Python 3.10 or higher
uv - Ultra-fast Python package installer
just - Command runner (optional but recommended)
Git
Installing uv¶
# macOS/Linux
curl -LsSf https://astral.sh/uv/install.sh | sh
# Windows
powershell -c "irm https://astral.sh/uv/install.ps1 | iex"
Installing just¶
# macOS
brew install just
# Linux
cargo install just
# Or download from https://github.com/casey/just/releases
Clone the Repository¶
git clone https://github.com/aclark4life/dbx-python-cli.git
cd dbx-python-cli
Install the Package¶
Using just (Recommended)¶
# Install the package in editable mode
just install
# Install with development dependencies
just install-dev
# Install documentation dependencies
just install-docs
# Install testing dependencies
just install-test
Using uv Directly¶
# Install the package in editable mode
uv pip install -e .
# Install with development dependencies
uv pip install -e ".[dev]"
# Install with specific dependency groups
uv pip install -e ".[docs]" # Documentation dependencies
uv pip install -e ".[test]" # Testing dependencies
Install Pre-commit Hooks¶
# Using just
just install-hooks
# Or manually
pre-commit install
The pre-commit hooks will run automatically on every commit and check:
Trailing whitespace
End of files
YAML/TOML syntax
Large files
Merge conflicts
Line endings
Code formatting (ruff)
Verify Installation¶
# Check that dbx is installed
dbx --version
# Run tests to verify everything works
just test
# Build documentation
just docs