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=DEBUGfor more verbose output.
- Add
pixi run test: Run the full test suite withpytest.pixi run format: Format all code usingruff.pixi run lint: Run all linters (flake8,pyflakes,pyright).
Windows
Prerequisites
- MSYS2 (provides the MinGW64 environment).
- Git for Windows.
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=DEBUGfor more verbose output.
- Add
run test: Run the full test suite usingpytest.run build: Build the final Windows executable (.exe).