Skip to content

Commit b985048

Browse files
github-actions[bot]nabobalisCadairpre-commit-ci[bot]
authored
Updates from the package template (#159)
* Automatic package template update * Update conf.py * Update .pre-commit-config.yaml * Update .pre-commit-config.yaml * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: nabobalis <[email protected]> Co-authored-by: Stuart Mumford <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Nabil Freij <[email protected]>
1 parent 7d7e4cb commit b985048

File tree

4 files changed

+25
-25
lines changed

4 files changed

+25
-25
lines changed

.cruft.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"template": "https://github.com/sunpy/package-template",
3-
"commit": "e4da826808cc9caf3606609c80a98ed441b9da44",
3+
"commit": "dd830771f0bb01d5313912e0082f3434715e474a",
44
"checkout": null,
55
"context": {
66
"cookiecutter": {

.pre-commit-config.yaml

Lines changed: 18 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,35 @@
1-
exclude: ".*(.fits|.fts|.fit|.txt|.csv)$"
21
repos:
3-
- repo: https://github.com/PyCQA/docformatter
4-
rev: v1.7.5
5-
hooks:
6-
- id: docformatter
7-
args: [--in-place, --pre-summary-newline, --make-summary-multi]
8-
- repo: https://github.com/PyCQA/autoflake
9-
rev: v2.3.1
10-
hooks:
11-
- id: autoflake
12-
args: ['--in-place', '--remove-all-unused-imports', '--remove-unused-variable']
13-
exclude: ".*(.fits|.fts|.fit|.txt|tca.*|extern.*|.rst|.md|docs/conf.py)$"
2+
# This should be before any formatting hooks like isort
143
- repo: https://github.com/astral-sh/ruff-pre-commit
15-
rev: "v0.6.8"
4+
rev: "v0.6.9"
165
hooks:
176
- id: ruff
187
args: ["--fix"]
19-
- id: ruff-format
20-
- repo: https://github.com/pre-commit/pre-commit-hooks
21-
rev: v4.6.0
22-
hooks:
8+
- repo: https://github.com/PyCQA/isort
9+
rev: 5.13.2
10+
hooks:
11+
- id: isort
12+
exclude: ".*(.fits|.fts|.fit|.header|.txt|tca.*|extern.*|{{ cookiecutter.module_name }}/extern)$"
13+
- repo: https://github.com/pre-commit/pre-commit-hooks
14+
rev: v5.0.0
15+
hooks:
2316
- id: check-ast
2417
- id: check-case-conflict
2518
- id: trailing-whitespace
26-
- id: mixed-line-ending
27-
- id: end-of-file-fixer
19+
exclude: ".*(.fits|.fts|.fit|.header|.txt)$"
2820
- id: check-yaml
2921
- id: debug-statements
22+
- id: check-added-large-files
23+
args: ["--enforce-all", "--maxkb=1054"]
24+
- id: end-of-file-fixer
25+
exclude: ".*(.fits|.fts|.fit|.header|.txt|tca.*|.json)$|^CITATION.rst$"
26+
- id: mixed-line-ending
27+
exclude: ".*(.fits|.fts|.fit|.header|.txt|tca.*)$"
3028
- repo: https://github.com/codespell-project/codespell
3129
rev: v2.3.0
3230
hooks:
3331
- id: codespell
34-
additional_dependencies:
35-
- tomli
32+
args: [ "--write-changes" ]
3633
ci:
3734
autofix_prs: false
3835
autoupdate_schedule: "quarterly"

docs/conf.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
elif _version.is_devrelease:
2525
version = release = f"{_version.base_version}.dev{_version.dev}"
2626
is_development = _version.is_devrelease
27-
is_release = not (_version.is_prerelease or _version.is_devrelease)
27+
is_release = not(_version.is_prerelease or _version.is_devrelease)
2828

2929
project = "sunpy-soar"
3030
copyright = f"{datetime.datetime.now().year}, The SunPy Community" # NOQA: A001, DTZ005
@@ -51,10 +51,12 @@
5151
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
5252
source_suffix = ".rst"
5353
master_doc = "index"
54-
default_role = "obj"
5554
napoleon_use_rtype = False
5655
napoleon_google_docstring = False
5756

57+
# Treat everything in single ` as a Python reference.
58+
default_role = "py:obj"
59+
5860
# -- Options for intersphinx extension ---------------------------------------
5961
intersphinx_mapping = {
6062
"python": (

sunpy_soar/attrs.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
import astropy.units as u
88
import sunpy.net.attrs as a
99
from astropy.units import quantity_input
10-
from sunpy.net.attr import AttrAnd, AttrOr, AttrWalker, DataAttr, Range, SimpleAttr
10+
from sunpy.net.attr import (AttrAnd, AttrOr, AttrWalker, DataAttr, Range,
11+
SimpleAttr)
1112
from sunpy.util.exceptions import SunpyUserWarning
1213

1314
__all__ = ["Product", "SOOP", "Distance"]

0 commit comments

Comments
 (0)