Thanks for your interest in contributing to causal-ts! Here are a few
general guidelines on contributing and reporting bugs that we ask you to review.
Following these guidelines helps to communicate that you respect the time of the
contributors managing and developing this open source project. In return, they
should reciprocate that respect in addressing your issue, assessing changes, and
helping you finalize your pull requests. In that spirit of mutual respect, we
endeavor to review incoming issues and pull requests within 10 days, and will
close any lingering issues or pull requests after 60 days of inactivity.
Please note that all of your interactions in the project are subject to our Code of Conduct. This includes creation of issues or pull requests, commenting on issues or pull requests, and extends to all interactions in any real-time space e.g., Slack, Discord, etc.
Before reporting a new issue, please ensure that the issue was not already reported or fixed by searching through our issues list.
When creating a new issue, please be sure to include a title and clear description, as much relevant information as possible, and, if possible, a test case.
If you discover a security bug, please do not report it through GitHub. Instead, please see security procedures in SECURITY.md.
Issues labelled good first issue are kept for people making their first
contribution here, so that several newcomers each get one.
- Comment on the issue to claim it, and wait until a maintainer assigns it to you before opening a pull request.
- Work on one
good first issueat a time. After your first pull request is merged, please pick issues without that label (help wantedones are a good next step) and leave the rest for other newcomers. - If you have been assigned an issue but cannot finish it, say so on the issue so it can go to someone else. Assignments with no activity for two weeks may be released.
Pull requests for a good first issue that is not assigned to their author may
be closed.
Before sending a new pull request, take a look at existing pull requests and issues to see if the proposed change or fix has been discussed in the past, or if the change was already implemented but not yet released.
We expect new pull requests to include tests for any affected behavior, and, as we follow semantic versioning, we may reserve breaking changes until the next major version release.
Every example notebook examples/<name>.ipynb is paired with a plain-text
mirror examples/scripts/<name>.py using
Jupytext, so code changes show up as
reviewable .py diffs instead of notebook JSON. Pairing is configured once
in [tool.jupytext] in pyproject.toml; tutorial.ipynb and notebooks
outside examples/ are not paired.
- Setup (recommended):
pip install -e ".[dev]" pre-committhenpre-commit install. The hook runsjupytext --syncon every commit that touches a notebook or mirror; if it updates the other file, stage it and commit again. - Without the hook: after editing either side, run
jupytext --sync examples/<name>.ipynband commit both files. - New notebook: add
examples/<name>.ipynband sync it; the mirror is created inexamples/scripts/. Deleting or renaming a notebook means doing the same to its mirror. - Outputs and widget state live only in the
.ipynb. Read the Docs renders the committed notebooks (nb_execution_mode = "off"indocs/conf.py) and the mirror never carries outputs, so output churn stays out of review diffs. Syncing preserves outputs. - Lint: do not run
blackorisorton the mirrors (both are configured to skip them): reordering imports across# %%cell markers corrupts the notebook on the next sync. flake8 checks mirrors only for syntax errors and undefined names, matching the notebooks' lint exemption inlint.yml. - CI: the
python-lintjob re-syncs every example notebook and fails if a pair has drifted, a mirror is missing, or a mirror has no notebook. Jupytext is pinned (dev extra, CI, and.pre-commit-config.yaml) because the mirror header records the generating version; bump all three together and re-sync.
We welcome anyone that wants to contribute to causal-ts to triage and
reply to open issues to help troubleshoot and fix existing bugs. Here is what
you can do:
- Help ensure that existing issues follows the recommendations from the Reporting Issues section, providing feedback to the issue's author on what might be missing.
- Review and update the existing content of our Wiki with up-to-date instructions and code samples.
- Review existing pull requests, and testing patches against real existing
applications that use
causal-ts. - Write a test, or add a missing test case to an existing test.
Thanks again for your interest on contributing to causal-ts!
❤️