Skip to content

Commit 88ff951

Browse files
github-actions[bot]DanRyanIrishCadairsamaloney
authored
Updates from the package template (#224)
* Automatic package template update * Move import out of the function * Add noqa for inline import --------- Co-authored-by: DanRyanIrish <[email protected]> Co-authored-by: Stuart Mumford <[email protected]> Co-authored-by: Shane Maloney <[email protected]>
1 parent aa9db5e commit 88ff951

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
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": "15fdf534198e4f67f0a667af7d2367e93de181c5",
3+
"commit": "88a0a31eadf2be84895e32ffd792768c2863f7ca",
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": "15fdf534198e4f67f0a667af7d2367e93de181c5"
35+
"_commit": "88a0a31eadf2be84895e32ffd792768c2863f7ca"
3636
}
3737
},
3838
"directory": null

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
repos:
22
# This should be before any formatting hooks like isort
33
- repo: https://github.com/astral-sh/ruff-pre-commit
4-
rev: "v0.11.12"
4+
rev: "v0.12.1"
55
hooks:
66
- id: ruff
77
args: ["--fix"]

examples/fitting_attenuated_RHESSI_spectra.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282

8383

8484
def double_thick(electron_flux, low_index, break_energy, up_index, low_cutoff, up_cutoff, energies=None):
85-
from sunkit_spex.legacy.emission import bremsstrahlung_thick_target
85+
from sunkit_spex.legacy.emission import bremsstrahlung_thick_target # noqa: PLC0415
8686

8787
mids = np.mean(energies, axis=1)
8888
flux = bremsstrahlung_thick_target(

0 commit comments

Comments
 (0)