Skip to content

Development Setup

Prerequisites

  • Python 3.10+
  • UV package manager
  • Git

Installation

  1. Clone the repository:

    git clone https://github.com/your-org/xx-shell.git
    cd xx-shell
    

  2. Create virtual environment:

    uv venv .venv
    

  3. Activate environment:

    source .venv/bin/activate
    

  4. Install dependencies:

    uv pip install -r requirements.txt -r requirements-dev.txt
    

Development Tools

  • Formatting: black and isort
  • Linting: flake8
  • Type checking: mypy
  • Testing: pytest

Pre-commit Hooks

Install pre-commit hooks:

pre-commit install

Running Tests

Run all tests:

pytest

Run tests with coverage:

pytest --cov

Development Roadmap

Phase 1: Core Functionality (2 weeks)

  • Basic command interpreter
  • Execution layer
  • Data storage

Phase 2: Advanced Features (3 weeks)

  • Command optimization
  • Context management
  • User interface

Phase 3: Ecosystem Integration (2 weeks)

  • Plugin system
  • Cross-platform support
  • Documentation