Skip to content
Edit this page

Contributing Guide

We welcome contributions across all areas of the project—code, documentation, examples, bug reports, and architectural discussions. Whether you are fixing a typo, improving docs, or proposing a new subsystem, we are excited to help you get your contribution merged.

How to Help

  • Reporting Issues: If you find a bug or have an idea for improvement, open an issue. Please include details on your environment, reproducible steps, expected results, and actual behavior. Console logs and minimal test cases are especially helpful.
  • Submitting Pull Requests: When you are ready to implement a change, open a pull request. Keep each PR focused on a single change and follow the Conventional Commits specification (feat:, fix:, docs:, chore:). Smaller, focused PRs are reviewed and merged much faster.
  • Joining Discussions: If you are unsure where to begin or wish to discuss design ideas before writing code, open a GitHub Discussion. All questions and ideas are welcome.
  • Getting Unblocked: If you encounter roadblocks during development, reach out on your PR, issue, or discussion. The maintainers are happy to provide guidance.

Development Workflow

  • Maintain changes focused: keep unrelated modifications in separate commits or pull requests.
  • Adhere to Conventional Commits (feat:, fix:, docs:, chore:), also use same pattern for PR titles:
    • Commit message: refactor(editor): split app.rs into dedicated submodules
    • PR title: Refactor(Editor): Split `app.rs` into dedicated submodules
  • Never commit credentials, local filesystem paths, or build artifacts (target/, _cache/).
  • Follow How to create a PR guide for complete instructions.

Continuous Integration

Every pull request must pass the full workspace verification suite:

cargo fmt --all -- --check
npx markdownlint-cli2
cargo build --workspace --locked
cargo test --workspace --locked
PITE_LSP_SMOKE=1 cargo test -p pite-editor --lib live_pyright_smoke
bash scripts/check-examples.sh

Markdown rules live in .markdownlint.yml; lint scope and generated-file ignores live in .markdownlint-cli2.jsonc.

Releases

Releases are cut by maintainers on an ad hoc schedule. The lockstep version-bump checklist, tag rules, and PyPI stub publishing steps live in Maintenance Notes.

Local Environment Setup

  • Git Hooks: Install pre-commit (pipx install pre-commit or pip install pre-commit) and run pre-commit install once per clone. The hooks check Rust formatting, lint staged Markdown, and reject commit subjects that do not follow the convention above; the Markdown hook runs markdownlint-cli2 through npx, so Node.js must be available. Run every hook across the tree with pre-commit run --all-files.

  • Python & Audio Headers: Building embedded scripting requires CPython 3.12 with development headers, and Linux audio requires ALSA development headers (libasound2-dev and pkg-config on Debian/Ubuntu). Set environment variables to point PyO3 at your Python installation:

export PYO3_PYTHON=/path/to/python3.12
export LD_LIBRARY_PATH=/path/to/python3.12/lib:$LD_LIBRARY_PATH
  • WSL (Windows Subsystem for Linux): On WSL environments without Wayland support, run the editor using the X11 backend:
WINIT_UNIX_BACKEND=x11 cargo run -p pite -- edit

Community Governance and Policies

Contributors and community participants must adhere to our project policies:

  • Code of Conduct: We are committed to a welcoming and harassment-free community. See Code of Conduct.
  • Security Policy: To report vulnerabilities or review our security practices, see Security Policy.
  • Accessibility: For our accessibility baseline, supported assistive environments, and barrier reporting, see Accessibility Statement.

Licensing

All contributions are dual-licensed under MIT and Apache-2.0. New Rust source files must begin with the standard SPDX header:

// SPDX-License-Identifier: MIT OR Apache-2.0

New Python files shipped as part of the engine must begin with:

# SPDX-License-Identifier: MIT OR Apache-2.0

Example game scripts located under examples/ omit license headers to keep starter projects clean and minimal.