Skip to content

Commit 458266a

Browse files
SunPyBotCadair
andauthored
Updates from package template (#164)
* Update cruft with batchpr * Update README.rst * Update README.rst --------- Co-authored-by: Stuart Mumford <stuart@cadair.com>
1 parent 0dc076a commit 458266a

File tree

4 files changed

+11
-10
lines changed

4 files changed

+11
-10
lines changed

.cruft.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"template": "https://github.com/sunpy/package-template",
3-
"commit": "164646d882aa2e972d305c54778aaaf35f707464",
3+
"commit": "4268346dead7b529a3d53df19bcf374bb2bbef34",
44
"checkout": null,
55
"context": {
66
"cookiecutter": {
@@ -32,7 +32,7 @@
3232
".github/workflows/sub_package_update.yml"
3333
],
3434
"_template": "https://github.com/sunpy/package-template",
35-
"_commit": "164646d882aa2e972d305c54778aaaf35f707464"
35+
"_commit": "4268346dead7b529a3d53df19bcf374bb2bbef34"
3636
}
3737
},
3838
"directory": null

.github/workflows/sub_package_update.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ jobs:
7777
7878
- name: Create pull request
7979
if: steps.cruft_json.outputs.has_changes == '1'
80-
uses: peter-evans/create-pull-request@v7
80+
uses: peter-evans/create-pull-request@v8
8181
with:
8282
token: ${{ secrets.GITHUB_TOKEN }}
8383
add-paths: "."
@@ -145,15 +145,15 @@ jobs:
145145
// If no issue is open, create a new issue,
146146
// else update the body of the existing issue.
147147
if (result.search.edges.length === 0) {
148-
github.rest.issues.create({
148+
await github.rest.issues.create({
149149
owner: variables.owner,
150-
repo: variables.n ame,
150+
repo: variables.name,
151151
body: issue_body,
152152
title: variables.title,
153153
labels: [variables.label],
154154
});
155155
} else {
156-
github.rest.issues.update({
156+
await github.rest.issues.update({
157157
owner: variables.owner,
158158
repo: variables.name,
159159
issue_number: result.search.edges[0].node.number,

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ exclude: ".*(.fits|.fts|.fit|.header|.txt|tca.*|extern.*|drms/extern)$|^CITATION
22

33
repos:
44
- repo: https://github.com/astral-sh/ruff-pre-commit
5-
rev: "v0.14.10"
5+
rev: "v0.15.4"
66
hooks:
77
- id: ruff
88
args: ['--fix', '--unsafe-fixes']
99
- id: ruff-format
1010
- repo: https://github.com/PyCQA/isort
11-
rev: 7.0.0
11+
rev: 8.0.1
1212
hooks:
1313
- id: isort
1414
- repo: https://github.com/PyCQA/isort

README.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,16 @@ Usage of Generative AI
3232
----------------------
3333

3434
We expect authentic engagement in our community.
35-
Be wary of posting output from Large Language Models or similar generative AI as comments on GitHub or any other platform, as such comments tend to be formulaic and low quality content.
35+
**Do not post the output from Large Language Models or similar generative AI as code, issues or comments on GitHub or any other platform.**
3636
If you use generative AI tools as an aid in developing code or documentation changes, ensure that you fully understand the proposed changes and can explain why they are the correct approach and an improvement to the current state.
37+
For more information see our documentation on fair and appropriate `AI usage <https://docs.sunpy.org/en/latest/dev_guide/contents/ai_usage.html>`__.
3738

3839
License
3940
-------
4041

4142
This project is Copyright (c) The SunPy Community and licensed under
4243
the terms of the BSD 2-Clause license. This package is based upon
43-
the `Openastronomy packaging guide <https://github.com/OpenAstronomy/packaging-guide>`_
44+
the `Openastronomy packaging guide <https://github.com/OpenAstronomy/packaging-guide>`__
4445
which is licensed under the BSD 3-clause licence. See the licenses folder for
4546
more information.
4647

0 commit comments

Comments
 (0)