Skip to main content

Setup

This guide covers setting up your development environment for Rayforge.

Linux

Prerequisites

See the Installation Guide for Pixi installation instructions.

Pre-commit Hooks (Optional)

To automatically format and lint your code before each commit, you can install pre-commit hooks:

pixi run pre-commit-install

Useful Commands

All commands are run via pixi run:

  • pixi run rayforge: Run the application.
    • Add --loglevel=DEBUG for more verbose output.
  • pixi run test: Run the full test suite with pytest.
  • pixi run format: Format all code using ruff.
  • pixi run lint: Run all linters (flake8, pyflakes, pyright).

Windows

Prerequisites

Install

Development tasks on Windows are managed via the run.bat script, which is a wrapper for the MSYS2 shell.

After cloning the repository, run the setup command from a standard Windows Command Prompt or PowerShell:

.\run.bat setup

This executes scripts/win/win_setup.sh to install all necessary system and Python packages into your MSYS2/MinGW64 environment.

Useful Commands

All commands are run via the run.bat script:

  • run app: Run the application from source.
    • Add --loglevel=DEBUG for more verbose output.
  • run test: Run the full test suite using pytest.
  • run build: Build the final Windows executable (.exe).