Skip to content

Commit 0b40b6e

Browse files
authored
Merge pull request #82 from astropy/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2 parents e6996c5 + bda9295 commit 0b40b6e

File tree

4 files changed

+14
-11
lines changed

4 files changed

+14
-11
lines changed

.github/dependabot.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
version: 2
22
updates:
33
- package-ecosystem: "github-actions"
4-
directory: "/"
4+
directory: ".github/workflows"
55
schedule:
6-
interval: "monthly"
6+
interval: "weekly"
7+
groups:
8+
actions:
9+
patterns:
10+
- "*"

.pre-commit-config.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v4.5.0
3+
rev: v4.6.0
44
hooks:
55
- id: check-added-large-files
66
- id: check-case-conflict
@@ -12,25 +12,25 @@ repos:
1212
exclude: ".*(data.*|extern.*|licenses.*|.*.fits)$"
1313

1414
- repo: https://github.com/psf/black-pre-commit-mirror
15-
rev: 23.11.0
15+
rev: 24.8.0
1616
hooks:
1717
- id: black
1818

1919
- repo: https://github.com/scientific-python/cookie
20-
rev: 2023.11.17
20+
rev: 2024.08.19
2121
hooks:
2222
- id: sp-repo-review
2323

2424
- repo: https://github.com/codespell-project/codespell
25-
rev: v2.2.6
25+
rev: v2.3.0
2626
hooks:
2727
- id: codespell
2828
args: ["--write-changes"]
2929
additional_dependencies:
3030
- tomli
3131

3232
- repo: https://github.com/astral-sh/ruff-pre-commit
33-
rev: "v0.1.7"
33+
rev: "v0.6.3"
3434
hooks:
3535
- id: ruff
3636
args: ["--fix", "--show-fixes"]

extension_helpers/tests/__init__.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,8 @@ def run_cmd(cmd, args, path=None, raise_error=True):
2929

3030
if raise_error and return_code != 0:
3131
raise RuntimeError(
32-
"The command `{}` with args {!r} exited with code {}.\n"
33-
"Stdout:\n\n{}\n\nStderr:\n\n{}".format(
34-
cmd, list(args), return_code, streams[0], streams[1]
35-
)
32+
f"The command `{cmd}` with args {list(args)!r} exited with code {return_code}.\n"
33+
f"Stdout:\n\n{streams[0]}\n\nStderr:\n\n{streams[1]}"
3634
)
3735

3836
return streams + (return_code,)

extension_helpers/tests/py311_backports.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
agrees to be bound by the terms and conditions of this License
4949
Agreement.
5050
"""
51+
5152
import os
5253
from contextlib import AbstractContextManager
5354

0 commit comments

Comments
 (0)