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
11 changes: 9 additions & 2 deletions .github/AI_POLICY.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ However, due to both legal and human reasons, we have to establish boundaries.
> - We take the responsibility for this project very seriously and we expect you to take your responsibility for your contributions seriously, too.
> This used to be a given, but it changed now that a pull request is just one prompt away.
>
> - Do not poison human interactions with LLM-generated text.
> Write it yourself, or don't post it at all.
> Broken English is better than LLM word salad.
>
> - Every contribution has to be backed by a human who unequivocally owns the copyright for all changes.
> No LLM bots in `Co-authored-by:`s.
>
Expand Down Expand Up @@ -72,6 +76,9 @@ In practice, this means:
- Accounts that exercise bot-like behavior – like automated mass pull requests – will be permanently banned, whether they belong to a human or not.

- Do **not** post LLM-generated review comments – we can prompt LLMs ourselves should we desire their wisdom.
Do **not** post summaries unless you've fact-checked them and take responsibility for 100% of their content.
Remember that *all* LLM output *looks* **plausible**.
When using these tools, it's **your** responsibility to ensure that it's also **correct** and has a reasonable signal-to-noise ratio.
When using these tools, it's **your** responsibility to **verify** the findings and present them in a **correct** and **readable** form.

- Do **not** post LLM-generated text in issues and comments.
Open source is a social endeavor to us, so poisoning the conversation with LLM slop runs contrary to why we do what we do.
As such, posting LLM word salad leads to bans.
16 changes: 6 additions & 10 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
# How To Contribute

> [!IMPORTANT]
> - This document is mainly to help you to get started by codifying tribal knowledge and expectations and make it more accessible to everyone.
> But don't be afraid to open half-finished PRs and ask questions if something is unclear!
> - Due to the uncontrollable flood of low-quality LLM-generated pull requests, we have to limit pull requests to collaborators until GitHub gives us better tools to deal with them.
>
> We are open to adding anyone as a team member who is serious about contributing in line with our values.
> An example to achieve that is posting a good summary of planned work for an issue.
>
> Writing good issues (or reproducing or refuting existing ones) is currently the most appreciated way to contribute to the project.
>
> - If you use LLM / "AI" tools for your contributions, please read and follow our [_Generative AI / LLM Policy_][llm].
Expand All @@ -26,10 +30,6 @@ It's people like *you* who make this project such a great tool for everyone.
- Very relatedly, our pull request checklist is our mandatory [Van Halen test](https://en.wikipedia.org/wiki/Van_Halen_test).
Sadly, the current state of the world has forced us into being stricter about policies – sorry fellow humans!

- No contribution is too small!
Please submit as many fixes for typos and grammar bloopers as you can!
They're your license to delete the checklist!

- Before starting big contributions, **talk to us first**.
Don't waste energy / tokens on something that we do not want.
Rejecting a huge PR is unpleasant for everybody.
Expand Down Expand Up @@ -278,7 +278,6 @@ Towncrier will merge all news fragments with identical contents into one entry w
## Governance

*attrs* is maintained by [team of volunteers](https://github.com/python-attrs) that is always open to new members that share our vision of a fast, lean, and magic-free library that empowers programmers to write better code with less effort.
If you'd like to join, just get a pull request merged and ask to be added in the very same pull request!

**The simple rule is that everyone is welcome to review/merge pull requests of others but nobody is allowed to merge their own code.**

Expand All @@ -287,9 +286,6 @@ If you'd like to join, just get a pull request merged and ask to be added in the

## See You on GitHub!

Again, this whole file is mainly to help you to get started by codifying tribal knowledge and expectations to save you time and turnarounds.
It is **not** meant to be a barrier to entry, so don't be afraid to open half-finished PRs and ask questions if something is unclear!

Please note that this project is released with a Contributor [Code of Conduct](CODE_OF_CONDUCT.md).
By participating in this project you agree to abide by its terms.
Please report any harm to Hynek Schlawack in any way you find appropriate.
Expand Down
86 changes: 86 additions & 0 deletions .github/ISSUE_TEMPLATE/1-bug.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
---
name: Bug report
description: Something in attrs does not work as documented.
type: Bug
body:
- type: markdown
attributes:
value: |
**Write this issue yourself, in your own words.**
Broken English is fine.
We much prefer it to LLM text.
We close issues that consist of LLM-generated text, and we block their authors.
Read our [AI policy](https://github.com/python-attrs/attrs/blob/main/.github/AI_POLICY.md) for details.
Pull requests are open to project collaborators only.
Do **not** link to patches, branches, or gists.
We do not look at them.
- type: checkboxes
id: terms
attributes:
label: Before you submit
options:
- label: I wrote this issue myself and I take full responsibility for its content.
required: true
- label: I searched the [existing issues](https://github.com/python-attrs/attrs/issues?q=is%3Aissue) for this bug.
required: true
- label: I can reproduce the bug with the latest release of *attrs*.
required: true

- type: textarea
id: description
attributes:
label: What happened?
description: Describe the bug in a few sentences.
validations:
required: true

- type: textarea
id: reproducer
attributes:
label: Minimal reproducer
description: |
Paste [self-contained Python code](https://sscce.org) that shows the bug.
We must be able to copy it and run it without changes.
Remove all code that is not necessary to show the bug.
Do not link to code.
render: python
validations:
required: true

- type: textarea
id: actual
attributes:
label: Actual output
description: |
Paste the full traceback, the type checker output, or the incorrect output.
Copy it exactly from your terminal.
render: text
validations:
required: true

- type: textarea
id: expected
attributes:
label: Expected behavior
description: Tell us what you expected to happen instead, and why.
validations:
required: true

- type: textarea
id: versions
attributes:
label: Versions
description: |
Run this command and paste its output:
```
python -c "import sys, attrs; print(sys.version); print(attrs.__version__)"
```
If the bug is about type checking, also give the name and version of your type checker.
render: text
validations:
required: true
57 changes: 57 additions & 0 deletions .github/ISSUE_TEMPLATE/2-feature.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
---
name: Feature request
description: Propose a new feature or a change to an existing feature.
type: Feature
body:
- type: markdown
attributes:
value: |
**Write this issue yourself, in your own words.**
Broken English is fine.
We much prefer it to LLM text.
We close issues that consist of LLM-generated text, and we block their authors.
Read our [AI policy](https://github.com/python-attrs/attrs/blob/main/.github/AI_POLICY.md) for details.
Pull requests are open to project collaborators only.
Do **not** link to patches, branches, or gists.
We do not look at them.
- type: checkboxes
id: terms
attributes:
label: Before you submit
options:
- label: I wrote this issue myself and I take full responsibility for its content.
required: true
- label: I searched the [existing issues](https://github.com/python-attrs/attrs/issues?q=is%3Aissue) for this feature.
required: true

- type: textarea
id: problem
attributes:
label: What problem do you want to solve?
description: |
Describe your use case.
Tell us what you want to do, not only what you want us to add.
validations:
required: true

- type: textarea
id: example
attributes:
label: Example code
description: Show how you want to use the feature in your code.
render: python
validations:
required: true

- type: textarea
id: today
attributes:
label: What do you do today?
description: |
Tell us how you solve the problem now, and why that is not sufficient.
If you have no solution, write that.
validations:
required: true
45 changes: 45 additions & 0 deletions .github/ISSUE_TEMPLATE/3-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
---
name: Documentation problem
description: Something in the documentation is wrong, missing, or not clear.
labels: ["Documentation"]
body:
- type: markdown
attributes:
value: |
**Write this issue yourself, in your own words.**
Broken English is fine.
We much prefer it to LLM text.
We close issues that consist of LLM-generated text, and we block their authors.
Read our [AI policy](https://github.com/python-attrs/attrs/blob/main/.github/AI_POLICY.md) for details.
Pull requests are open to project collaborators only.
Do **not** link to patches, branches, or gists.
We do not look at them.
- type: checkboxes
id: terms
attributes:
label: Before you submit
options:
- label: I wrote this issue myself and I take full responsibility for its content.
required: true

- type: input
id: page
attributes:
label: Page
description: Paste the URL of the documentation page.
placeholder: https://www.attrs.org/en/stable/...
validations:
required: true

- type: textarea
id: problem
attributes:
label: What is wrong?
description: |
Quote the text that has the problem.
Then tell us what is wrong with it.
validations:
required: true
9 changes: 9 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
blank_issues_enabled: false
contact_links:
- name: Support question
url: https://stackoverflow.com/questions/tagged/python-attrs
about: Ask questions about how to use attrs on Stack Overflow with the python-attrs tag.
- name: Security vulnerability
url: https://tidelift.com/security
about: Report security vulnerabilities to Tidelift. Do not open a public issue.