Skip to content

Contributing

PySparky libraries are separate projects with their own versions, dependencies, tests, and API documentation. Start in the repository that owns the behavior you want to change. Check its README, AGENTS.md, current issues, pull requests, and working tree before editing.

For the public organization-wide workflow, see the PySparky contribution guide. The engineering policy's feature-admission section explains when a recurring problem belongs in a library and when a tested recipe is enough. Each repository's own instructions and GitHub protections govern its changes.

Propose a feature

Start with an issue in the repository that owns the behavior. Search its open and closed issues and pull requests first. A useful proposal explains:

  • The recurring problem and a short native PySpark or standard-library solution, followed by what a reusable helper would improve.
  • The intended API and behavior, including NULL, empty-input, error, ordering, laziness, and action or I/O boundaries that matter to the operation.
  • Which repository should own it, why the behavior is worth maintaining, and whether a documented recipe would solve the problem without another API.
  • Dependency and compatibility impact, with the Python, Spark, and Java versions that need to be exercised.
  • The synthetic tests, runnable documentation, performance evidence and caveats, and release or migration implications.

Use the public repository catalogue to find the current owner. Keep the issue focused; discuss larger or cross-repository designs before implementing them.

Project tracking and recovery

Maintainers use one private organization-level GitHub Project as the sole board for strategic work across all repositories. Keep each issue in the repository that owns the outcome; maintainers with access add unique active issues to the shared project. Contributors can propose work through issues in the owning repository and do not need Project access. Do not create repository-specific or local Kanban boards. For cross-repository work, use one parent issue for the shared outcome and link the affected pull requests; create another issue only for independently valuable work, and add it to the same project.

For substantial work, a maintainer may keep one private TASK.md checklist in the shared workspace under .agent/tasks/github/PySparky/<repository>/<issue>/. The issue remains the source of required outcomes. The checklist records only tactical steps, dependencies, checkpoints, verification, and blockers. Do not create remote issues for temporary implementation steps or commit temporary task files to the product repository. On recovery, compare the checklist with the branch, commits, worktree, and completed checks before continuing.

Engineering expectations

  • Prefer PySpark's public DataFrame and SQL APIs, and keep transformations composable and lazy where practical.
  • Make actions, session creation, network access, and other I/O explicit.
  • Define null behavior, errors, supported versions, and dependency impact.
  • Use synthetic local test data. Never use production data or perform production writes in tests.
  • Use the repository's pinned mise and uv workflow and run its checks.
  • Keep documentation examples runnable and describe relevant side effects.

Runnable documentation examples

Put a complete synthetic Python example in a fenced block and add <!-- pysparky-example: execute --> immediately before the fence. Mark only self-contained snippets that create and stop their own local Spark session, include explicit schemas, and assert bounded expected output. Keep public data synthetic; never run production writes or use credentials in an example.

Run mise run check for the syntax inventory and strict site build. Use mise run links for external Markdown links and mise run examples to execute marked snippets with the pinned Spark/Python/Java tuple. Update the example inventory in scripts/run_doc_examples.py when runnable documents are added.

Licensing and provenance

New original code and documentation default to MIT. Do not infer or change a file's license from package metadata alone. Preserve existing licenses, notices, and grants; identify the source and license of any reused code, text, examples, or media. See the licensing policy.

Public contribution workflow

  1. Choose the owning project from the repository catalogue or choose a learning page for a documentation change.
  2. Read that repository's README and instructions, then search its issues and pull requests. Open a focused proposal or report in that repository's public GitHub Issues tab when no existing discussion fits. Maintainers add accepted strategic work to the shared project; contributors do not need Project access.
  3. Work on a topic branch and submit a pull request to that repository. Describe the change, dependencies, tested versions, tests, documentation, side effects, and release implications. Link the issue when there is one.
  4. Run the checks documented by the repository and report their results accurately. Respond to review and follow that repository's branch protection and merge rules.

Do not claim a package feature is released until its release has been verified.