Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2fbd10a

Browse files
committed
Merge remote-tracking branch 'upstream/main' into translate-readme-zh
2 parents c3f79ae + ec9a0ea commit 2fbd10a

6 files changed

Lines changed: 44 additions & 34 deletions

File tree

.github/workflows/cibuildwheel.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ jobs:
146146
path: dist/
147147

148148
- name: Build wheels for CPython 3.14
149-
uses: pypa/cibuildwheel@ee02a1537ce3071a004a6b08c41e72f0fdc42d9a # v3.4.0
149+
uses: pypa/cibuildwheel@8d2b08b68458a16aeb24b64e68a09ab1c8e82084 # v3.4.1
150150
with:
151151
package-dir: dist/${{ needs.build_sdist.outputs.SDIST_NAME }}
152152
env:
@@ -156,7 +156,7 @@ jobs:
156156
CIBW_MANYLINUX_X86_64_IMAGE: manylinux_2_28
157157

158158
- name: Build wheels for CPython 3.13
159-
uses: pypa/cibuildwheel@ee02a1537ce3071a004a6b08c41e72f0fdc42d9a # v3.4.0
159+
uses: pypa/cibuildwheel@8d2b08b68458a16aeb24b64e68a09ab1c8e82084 # v3.4.1
160160
with:
161161
package-dir: dist/${{ needs.build_sdist.outputs.SDIST_NAME }}
162162
env:
@@ -165,23 +165,23 @@ jobs:
165165
CIBW_ARCHS: ${{ matrix.cibw_archs }}
166166

167167
- name: Build wheels for CPython 3.12
168-
uses: pypa/cibuildwheel@ee02a1537ce3071a004a6b08c41e72f0fdc42d9a # v3.4.0
168+
uses: pypa/cibuildwheel@8d2b08b68458a16aeb24b64e68a09ab1c8e82084 # v3.4.1
169169
with:
170170
package-dir: dist/${{ needs.build_sdist.outputs.SDIST_NAME }}
171171
env:
172172
CIBW_BUILD: "cp312-*"
173173
CIBW_ARCHS: ${{ matrix.cibw_archs }}
174174

175175
- name: Build wheels for CPython 3.11
176-
uses: pypa/cibuildwheel@ee02a1537ce3071a004a6b08c41e72f0fdc42d9a # v3.4.0
176+
uses: pypa/cibuildwheel@8d2b08b68458a16aeb24b64e68a09ab1c8e82084 # v3.4.1
177177
with:
178178
package-dir: dist/${{ needs.build_sdist.outputs.SDIST_NAME }}
179179
env:
180180
CIBW_BUILD: "cp311-*"
181181
CIBW_ARCHS: ${{ matrix.cibw_archs }}
182182

183183
- name: Build wheels for PyPy
184-
uses: pypa/cibuildwheel@ee02a1537ce3071a004a6b08c41e72f0fdc42d9a # v3.4.0
184+
uses: pypa/cibuildwheel@8d2b08b68458a16aeb24b64e68a09ab1c8e82084 # v3.4.1
185185
with:
186186
package-dir: dist/${{ needs.build_sdist.outputs.SDIST_NAME }}
187187
env:

.github/workflows/linting.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
1919
with:
2020
python-version: "3.x"
21-
- uses: j178/prek-action@79f765515bd648eb4d6bb1b17277b7cb22cb6468 # v2.0.0
21+
- uses: j178/prek-action@53276d8b0d10f8b6672aa85b4588c6921d0370cc # v2.0.1
2222
with:
2323
extra_args: --hook-stage manual --all-files
2424

.github/workflows/pr_welcome.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
issues: write
1717
pull-requests: write
1818
steps:
19-
- uses: plbstl/first-contribution@4fb1541ce2706255850d56c5684552607be1ae9b # v4.2.0
19+
- uses: plbstl/first-contribution@7c31f41b0e7a70adfcae06cf964679f61af6780b # v4.3.0
2020
with:
2121
labels: first-contribution
2222
pr-opened-msg: >+

.github/workflows/wasm.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
python-version: '3.13'
5151

5252
- name: Build wheels for wasm
53-
uses: pypa/cibuildwheel@ee02a1537ce3071a004a6b08c41e72f0fdc42d9a # v3.4.0
53+
uses: pypa/cibuildwheel@8d2b08b68458a16aeb24b64e68a09ab1c8e82084 # v3.4.1
5454
env:
5555
CIBW_BUILD: "cp312-*"
5656
CIBW_PLATFORM: "pyodide"

doc/devel/contribute.rst

Lines changed: 35 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -185,32 +185,42 @@ If you have developed an extension to Matplotlib, please consider adding it to o
185185

186186
.. _generative_ai:
187187

188+
Use of Generative AI
189+
====================
190+
191+
Generative AI tools are evolving rapidly and can be helpful. As with any tool,
192+
the resulting contribution is the responsibility of the contributor. We
193+
expect dedicated and authentic engagement in our community. In particular when
194+
using AI, carefully consider what and how to communicate, question results,
195+
think things through thoroughly and make well-informed decisions.
196+
197+
Some examples of acceptable and unacceptable AI uses are:
198+
199+
.. grid:: 1 1 2 2
200+
201+
.. grid-item::
202+
203+
:octicon:`check;1em;sd-text-success` **Acceptable uses**
204+
205+
- Gaining understanding of the existing code
206+
- Getting solution ideas
207+
- Translating or proof-reading your comments or PR descriptions. Please keep
208+
the wording as close as possible to your original wording.
209+
210+
.. grid-item::
211+
212+
:octicon:`x;1em;sd-text-danger` **Unacceptable uses**
213+
214+
- External AI tooling (e.g. bots, agents) directly interacting with the project;
215+
including creating issues, PRs or commenting on GitHub or Discourse.
216+
- Solving topics that you wouldn't be able to solve yourself without AI
217+
- Using AI output without ensuring that you fully understand the output or
218+
without verifying that it is the correct approach.
188219

189-
Restrictions on Generative AI Usage
190-
===================================
191-
192-
We expect authentic engagement in our community.
193-
194-
- Do not post output from Large Language Models or similar generative AI as
195-
comments on GitHub or our discourse server, as such comments tend to be
196-
formulaic and low content.
197-
- If you use generative AI tools as an aid in developing code or documentation
198-
changes, ensure that you fully understand the proposed changes and can
199-
explain why they are the correct approach.
200-
- If you use AI for translation or grammar correction, please keep the wording as close
201-
as possible to the original wording. It is much easier to come to a mutual
202-
understanding when we are working off a direct translation of your words/thoughts
203-
rather than a text an LLM may have embellished with possibly spurious information.
204-
205-
Make sure you have added value based on your personal competency to your
206-
contributions. Just taking some input, feeding it to an AI and posting the
207-
result is not of value to the project. To preserve precious core developer
208-
capacity, we reserve the right to rigorously reject seemingly AI generated
209-
low-value contributions.
210-
211-
In particular, it is also strictly forbidden to post AI generated
212-
content to issues or PRs via automated tooling such as bots or agents. We
213-
may ban such users and/or report them to GitHub.
220+
To ensure project health and preserve limited core developer capacity, we will flag
221+
and reject low-value contributions that we believe are AI generated. We may ban
222+
and/or report users to GitHub if they harm the project or its community through
223+
irresponsible use of AI.
214224

215225
.. _new_contributors:
216226

lib/matplotlib/legend.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1363,7 +1363,7 @@ def _parse_legend_args(axs, *args, handles=None, labels=None, **kwargs):
13631363
f"len(handles) = {len(handles)} "
13641364
f"len(labels) = {len(labels)}")
13651365
# if got both handles and labels as kwargs, make same length
1366-
if handles and labels:
1366+
if handles is not None and labels is not None:
13671367
handles, labels = zip(*zip(handles, labels))
13681368

13691369
elif handles is not None and labels is None:

0 commit comments

Comments
 (0)