Skip to content

Latest commit

 

History

History
116 lines (79 loc) · 4.95 KB

CONTRIBUTING.md

File metadata and controls

116 lines (79 loc) · 4.95 KB

Contributing to SQLMesh

Welcome

SQLMesh is a project of the Linux Foundation. We welcome contributions from anyone — whether you're fixing a bug, improving documentation, or proposing a new feature.

Technical Steering Committee (TSC)

The TSC is responsible for technical oversight of the SQLMesh project, including coordinating technical direction, approving contribution policies, and maintaining community norms.

Initial TSC voting members are the project's Maintainers:

Name GitHub Handle Affiliation Role
Alexander Butler z3z1ma Harness TSC Member
Alexander Filipchik afilipchik Cloud Kitchens TSC Member
Cortland Goffena cmgoffena13 Benzinga TSC Member
Yuki Kakegawa StuffbyYuki Jump.ai TSC Member
Toby Mao tobymao Fivetran TSC Chair
Alex Wilde alexminerv Minerva TSC Member

Roles

Contributors: Anyone who contributes code, documentation, or other technical artifacts to the project.

Maintainers: Contributors who have earned the ability to modify source code, documentation, or other technical artifacts. A Contributor may become a Maintainer by majority approval of the TSC. A Maintainer may be removed by majority approval of the TSC.

How to Contribute

  1. Fork the repository on GitHub
  2. Create a branch for your changes
  3. Make your changes and commit them with a sign-off (see DCO section below)
  4. Submit a pull request against the main branch

File issues at github.com/sqlmesh/sqlmesh/issues.

Developer Certificate of Origin (DCO)

All contributions must include a Signed-off-by line in the commit message per the Developer Certificate of Origin. This certifies that you wrote the contribution or have the right to submit it under the project's open source license.

Use git commit -s to add the sign-off automatically:

git commit -s -m "Your commit message"

To fix a commit that is missing the sign-off:

git commit --amend -s

To add a sign-off to multiple commits:

git rebase HEAD~N --signoff

Development Setup

See docs/development.md for full setup instructions. Key commands:

python -m venv .venv
source .venv/bin/activate
make install-dev
make style     # Run before submitting
make fast-test # Quick test suite

Optionally, make install-pre-commit installs git hooks so ruff and mypy run on git commit. Hooks do not replace make style: they run on staged files, while CI runs make style across the tree.

Coding Standards

  • Run make style before submitting a pull request
  • Follow existing code patterns and conventions in the codebase
  • New files should include an SPDX license header:
    # SPDX-License-Identifier: Apache-2.0

Pull Request Process

  • Describe your changes clearly in the pull request description
  • Ensure all CI checks pass
  • Include a DCO sign-off on all commits (git commit -s)
  • Be responsive to review feedback from maintainers

Pull Request Titles

Pull requests are squash-merged, so the title becomes the commit message and the entry in the release notes. Titles must follow this format, which CI checks:

type(scope): description
  • type is one of feat, fix, perf, docs, refactor, chore, build, revert, ci or test. Lowercase is preferred, but Fix: is treated like fix:.
  • scope is optional and names the area changed, e.g. snowflake, plan, dbt or vscode.
  • Add ! after the type or scope for a breaking change, e.g. feat(plan)!: drop support for X. Also add an ### Upgrade note section to the description that says what users will see after upgrading and what to do about it. It's copied into the release notes.
  • Write the description for users: say what changed for them, not how the code changed.

Titles created by GitHub's "Revert" button (Revert "...") are also accepted. If the title check fails, edit the title. Editing it runs the check again.

Release notes are grouped using labels that are applied automatically from the title and the files changed. The title decides the Feature, Bug, performance, Documentation, maintenance, ci, test and breaking-change labels, so to recategorize a PR, change its title rather than its labels. Use ci or test as the type or scope for internal-only changes (e.g. fix(ci): ...) so they are left out of the release notes. A maintainer can add the skip-changelog label to leave out any other PR.

Licensing

Code contributions are licensed under the Apache License 2.0. Documentation contributions are licensed under Creative Commons Attribution 4.0 International (CC-BY-4.0). See the LICENSE file and the technical charter for details.