Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,14 @@ Please use the issue template and include:

Issues labelled [`good first issue`](https://github.com/petercorke/machinevision-toolbox-python/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22) or [`help wanted`](https://github.com/petercorke/machinevision-toolbox-python/issues?q=is%3Aissue+is%3Aopen+label%3A%22help+wanted%22) are a good place to start.

## Allow edits from maintainers

When you open a pull request from a fork, tick **Allow edits by maintainers** (it is under
the description box; on an existing PR, it is in the right-hand sidebar). Without it we
cannot bring your branch up to date with `main`, which the repository requires before a
merge, and every small fix of ours has to go through a second PR of our own, with your
commits rebased into it, instead of being added to yours.

## Contributing code

- Keep pull requests scoped to a single feature or fix. If you have several unrelated changes, open separate PRs so each can be reviewed and merged independently.
Expand Down
1 change: 1 addition & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Thanks for contributing to MVTB!
- [ ] Added/updated tests for this change, if applicable
- [ ] New/changed code is type-hinted with modern syntax (`X | Y`, `list[X]`, not `Union`/`Optional`/`List`)
- [ ] Docstrings updated (reST style: `:param:`, `:returns:`; type hints in the signature cover types now, `:type:`/`:rtype:` are rarely needed)
- [ ] If this PR is from a fork, **Allow edits by maintainers** is ticked (without it we cannot update your branch from `main`, and have to re-submit your commits as a PR of our own)

> **Automated bot comments to expect:** Codacy will comment with style/coverage findings — most of it is pre-existing backlog (see issues labeled [`tech-debt`](../../issues?q=is%3Aissue+label%3Atech-debt)), not something your PR introduced, so don't be alarmed. If this PR adds or bumps a dependency, Dependabot may separately comment flagging a known vulnerability — if so, use a newer patched version if one exists, or just note it in this PR and a maintainer will decide; you don't need to solve it yourself.

Expand Down
5 changes: 5 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,3 +87,8 @@ description and ask first.
- Branch names are `type/short-description` (`fix/`, `feat/`, `docs/`, `chore/`, `refactor/`,
`test/`). The required checks are `All tests passed` and the PR title.
- Keep the PR to the one Issue or fix, and say what you ran and what you could not run.
- **Allow edits by maintainers** when you open a PR from a fork (`gh pr create` does by
default; check with `gh pr view --json maintainerCanModify`, and for an existing PR tick it
in the sidebar). The repository requires a branch to be up to date with `main` before it
merges, and without this the maintainer cannot update your branch, so your commits have to be
re-submitted as a PR of the maintainer's own.
Loading