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 lazydatabricksSet Up Virtual Environment
python -m venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts\activateInstall Dependencies
pip install -e ".[dev]"This installs:
- All runtime dependencies
- Development tools (pytest, ruff, mypy)
- Documentation tools
Configure Pre-commit Hooks
pre-commit installRun Tests
pytestWith coverage:
pytest --cov=lazydatabricksCode Quality
# Linting
ruff check src/lazydatabricks
# Type checking
mypy src/lazydatabricks
# Formatting
ruff format src/lazydatabricksRunning Locally
lazydatabricksOr run as a module:
python -m lazydatabricksRunning Tests
# Run all tests
pytest tests/ -v
# With coverage
pytest tests/ --cov=lazydatabricks