Contributions are welcome and greatly appreciated.
Report bugs at https://github.com/NERC-CEH/time-stream/issues.
If you are reporting a bug, please include:
- Your operating system name and version.
- Any details about your local setup that might be helpful in troubleshooting.
- Detailed steps to reproduce the bug.
Look through the GitHub issues for bugs - these are open to whoever wants to implement it.
Look through the GitHub issues for features - these are open to whoever wants to implement it.
My Package could always use more documentation, whether as part of the official docs, local README's or in docstrings, and comments.
To preview the official docs locally:
make docs-serveThis starts a local server at http://localhost:8000 with live reload. Edit files in docs/ or add docstrings
to your code (the API reference page is auto-generated).
The best way to send feedback is to file an issue at https://github.com/NERC-CEH/time-stream/issues.
If you are proposing a feature:
- Explain in detail how it would work.
- Keep the scope as narrow as possible, to make it easier to implement.
Ready to contribute? Here's how to set up time-stream for local development.
-
Fork the time-stream repo on GitHub.
-
Clone your fork locally:
git clone git@github.com:your_name_here/time-stream.git
-
Install your local copy with uv:
cd time-stream/ uv sync -
Create a branch for local development off
develop:git checkout develop git pull origin develop git checkout -b name-of-your-bugfix-or-feature
Now you can make your changes locally.
-
When you're done making changes, check that your changes pass linting and the tests:
make qa
-
Commit your changes and push your branch to GitHub:
git add . git commit -m "Your detailed description of your changes." git push origin name-of-your-bugfix-or-feature
-
Open a pull request targeting
developthrough the GitHub website.Branch protection on
developandmain:- At least 1 approving review is required before merge.
- CI checks (
test-python,build-docs) must pass. - All PR review conversations must be resolved.
Before you submit a pull request, check that it meets these guidelines:
- The pull request should include tests.
- If the pull request adds functionality, the docs should be updated. Put your new functionality into a function with a docstring, and add the feature to the list in README.md.
- The pull request should pass all quality checks (
make qa) and GitHub Actions, making sure that the tests pass for all supported Python versions.
To run a subset of tests:
uv run pytest tests/Releases go through develop -> main to keep main in sync with what is published.
-
On
develop, bump the version and create a CHANGELOG stub:git checkout develop git pull origin develop make bump-patch # or bump-minor / bump-majorThis updates
pyproject.toml, commits the bump, and createsCHANGELOG/<version>.md. -
Fill in
CHANGELOG/<version>.mdwith the release notes, then commit and push:git add CHANGELOG/<version>.md git commit -m "Add release notes for <version>" git push origin develop
-
Open a release PR from develop to main:
make release
When run from
develop, this opens a pull request againstmainusing the CHANGELOG as the PR description. -
After the PR is merged, switch to
mainand tag:git checkout main git pull origin main make release
When run from
main, this creates an annotatedv*tag, pushes it to GitHub, and creates a GitHub Release.