Skip to content

Commit 2a5e415

Browse files
authored
Add a PR template and an AI Policy (#2209)
* Add an AI Policy that allows usage with disclosure, requires human This is the "moderate" policy from https://learn.scientific-python.org/development/guides/ai/#ai-policy-md, as suggested on gh-2183, with some tweaks based on review feedback on gh-2209. * Add a pull request template As proposed in gh-2183.
1 parent 3f4ce34 commit 2a5e415

3 files changed

Lines changed: 52 additions & 0 deletions

File tree

‎.github/PULL_REQUEST_TEMPLATE.md‎

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
### PR summary and motivation
2+
<!-- Please take some time to make it easier for us to review
3+
your pull request (PR). Describe the PR using the questions below as guidance.
4+
5+
- What problem does this PR solve? Link any relevant issues and PRs.
6+
- Why are you interested in working on this PR?
7+
- How does the proposed change help you?
8+
- Will this change be relevant in 5 years (for new pages or sections)?
9+
10+
Make sure to review the contribution guidelines: https://packaging.python.org/en/latest/contribute/
11+
12+
-->
13+
14+
15+
#### AI usage disclosure
16+
<!-- If AI was used in the preparation of this PR, please disclose
17+
the tool(s) used, how they were used, and specify what code or text is AI generated.
18+
If no AI tools were used, please write "No AI tools used" in this section.
19+
20+
All interactions with reviewers must be performed by humans, including the submission of PRs.
21+
22+
Read the Python Packaging User Guide's policy on AI-assisted contributions at
23+
https://github.com/pypa/packaging.python.org/blob/main/AI_POLICY.md
24+
25+
-->

‎AI_POLICY.md‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# AI Policy
2+
3+
AI-assisted contributions are accepted only if:
4+
5+
- The PR follows the same rules as a non-AI PR.
6+
- It clearly states that it is AI-assisted and names the tool used.
7+
- If you are a new contributor, your PR links to an accepted issue.
8+
- AI-generated descriptions/comments are clearly marked and only used when
9+
required.
10+
- A human drove the tool, reviewed every line, and can explain the change.
11+
- It was not opened by a fully autonomous agent.
12+
- You respond to review comments yourself.
13+
14+
This applies to issues and comments as well as pull requests. Using AI for
15+
translation or grammar help is fine. AI output may infringe copyright; it is
16+
your responsibility to make sure it does not.
17+
18+
Unsolicited, undisclosed, or low-effort AI PRs will be closed.
19+
20+
Only humans can be named as co-authors, and AI can *never* sign off on a
21+
commit. I.e., don't add `Co-authored-by` or `Signed-Off-By` for an AI tool.

‎source/contribute.rst‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@ By contributing to the |PyPUG|, you're expected to follow the PSF's
2828
.. __: https://policies.python.org/python.org/code-of-conduct/
2929

3030

31+
You are responsible for all code and documentation you submit, including
32+
AI-generated content. Review it yourself and respond to review comments in your
33+
own words. If you use AI coding tools, please read our
34+
`AI policy <https://github.com/pypa/packaging.python.org/blob/main/AI_POLICY.md>`_.
35+
36+
3137
Documentation types
3238
===================
3339

0 commit comments

Comments
 (0)