Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#118)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/PyCQA/autoflake: v2.2.1 → v2.3.1](PyCQA/autoflake@v2.2.1...v2.3.1)
- [github.com/astral-sh/ruff-pre-commit: v0.1.9 → v0.3.5](astral-sh/ruff-pre-commit@v0.1.9...v0.3.5)
- [github.com/psf/black: 23.12.1 → 24.3.0](psf/black@23.12.1...24.3.0)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] committed Apr 2, 2024
1 parent bd12db2 commit cbb7756
Show file tree
Hide file tree
Showing 11 changed files with 14 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@ repos:
- id: docformatter
args: [--in-place, --pre-summary-newline, --make-summary-multi]
- repo: https://github.com/PyCQA/autoflake
rev: v2.2.1
rev: v2.3.1
hooks:
- id: autoflake
args: ['--in-place', '--remove-all-unused-imports', '--remove-unused-variable']
exclude: ".*(.fits|.fts|.fit|.txt|tca.*|extern.*|.rst|.md|docs/conf.py)$"
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: 'v0.1.9'
rev: 'v0.3.5'
hooks:
- id: ruff
args: ['--fix', '--unsafe-fixes']
- repo: https://github.com/psf/black
rev: 23.12.1
rev: 24.3.0
hooks:
- id: black
exclude: ".*(.fits|.fts|.fit|.txt|.csv)$"
Expand Down
1 change: 1 addition & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Configuration file for the Sphinx documentation builder.
"""

import os
import datetime
from pathlib import Path
Expand Down
1 change: 1 addition & 0 deletions drms/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* Homepage: https://github.com/sunpy/drms
* Documentation: https://docs.sunpy.org/projects/drms/en/stable/
"""

import logging
from pathlib import Path

Expand Down
4 changes: 2 additions & 2 deletions drms/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ def _next_available_filename(fname):
return new_fname

@property
def id(self): # NOQA: A003
def id(self):
"""
(string) Request ID.
"""
Expand Down Expand Up @@ -272,7 +272,7 @@ def protocol(self):
return self._d.get("protocol")

@property
def dir(self): # NOQA: A003
def dir(self):
"""
(string) Common directory of the requested files on the server.
"""
Expand Down
2 changes: 1 addition & 1 deletion drms/json.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class JsocInfoConstants(Enum):
Constants for DRMS queries.
"""

all = "**ALL**" # NOQA: A003
all = "**ALL**"
none = "**NONE**"
recdir = "*recdir*"
dirmtime = "*dirmtime*"
Expand Down
1 change: 1 addition & 0 deletions examples/export_fits.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
record keywords in the FITS headers are not needed, as it greatly
reduces the server load.
"""

import os
from pathlib import Path

Expand Down
1 change: 1 addition & 0 deletions examples/export_jpg.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
tables, see http://jsoc.stanford.edu/ajax/exportdata.html and select the
JPEG protocol.
"""

import os
from pathlib import Path

Expand Down
1 change: 1 addition & 0 deletions examples/export_print_urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
Note that there is no "Request URL" for method 'url_quick'.
"""

import os

import drms
Expand Down
1 change: 1 addition & 0 deletions examples/list_hmi_series.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
This example shows how to find and display the HMI series names, prime keys and corresponding notes.
"""

import textwrap

import drms
Expand Down
1 change: 1 addition & 0 deletions examples/skip_export_from_id.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
Note that you can also use RequestIDs from export requests, that were
submitted using the JSOC website.
"""

from pathlib import Path

import drms
Expand Down
1 change: 1 addition & 0 deletions paper/create_joss_figure.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
This example creates the figure shown in the JOSS paper.
"""

import os

import matplotlib.pyplot as plt
Expand Down

0 comments on commit cbb7756

Please sign in to comment.