LazyDatabricks
Development

Development Setup

Set up your development environment for LazyDatabricks

This guide covers setting up a development environment for LazyDatabricks.

Prerequisites

  • Python 3.10+
  • Git
  • A Databricks workspace for testing

Clone the Repository

git clone https://github.com/mfbaig35r/lazydatabricks.git
cd lazydatabricks

Set Up Virtual Environment

python -m venv .venv
source .venv/bin/activate  # On Windows: .venv\Scripts\activate

Install Dependencies

pip install -e ".[dev]"

This installs:

  • All runtime dependencies
  • Development tools (pytest, ruff, mypy)
  • Documentation tools

Configure Pre-commit Hooks

pre-commit install

Run Tests

pytest

With coverage:

pytest --cov=lazydatabricks

Code Quality

# Linting
ruff check src/lazydatabricks

# Type checking
mypy src/lazydatabricks

# Formatting
ruff format src/lazydatabricks

Running Locally

lazydatabricks

Or run as a module:

python -m lazydatabricks

Running Tests

# Run all tests
pytest tests/ -v

# With coverage
pytest tests/ --cov=lazydatabricks

On this page