Skip to content
Merged
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 @@ -22,6 +22,14 @@ Several people (and AI coding agents) often pick up the same issue at about the
3. **Say if you used AI assistance.** AI-assisted contributions are welcome, but please state it in the PR description, and make sure you have read, run and understood the change yourself.
4. **Flag behaviour changes.** If a change alters numerical results or public behaviour, say so explicitly in the PR description, even if it is a bug fix.

## 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 @@ -18,6 +18,7 @@ Only the first item below is checked automatically — the rest are a self-check
- [ ] 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)
- [ ] PR is as small/focused as practical — if it tackles several unrelated things, consider splitting it so each can be reviewed and accepted independently
- [ ] I understand that the Codacy check is advisory (it reports `assert` in tests as "high" security), only `All tests passed` and the PR title check are required — see [CONTRIBUTING](CONTRIBUTING.md)
- [ ] If this change alters numerical results or public behaviour, I have said so in the summary above, even if it is a bug fix
Expand Down
6 changes: 6 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,5 +89,11 @@ description and ask first.
the disclosure there as well as in the commits.
- Branch names are `type/short-description`, using the same types as the commit and PR title
(`fix/`, `feat/`, `docs/`, `chore/`, `refactor/`, `test/`).
- **Allow edits from maintainers.** When you open the PR from a fork, enable "Allow edits by
maintainers" (`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.
- Keep the PR to the one Issue or fix, and say in the description what you ran and what you
could not run.
Loading