Skip to content

Commit

Permalink
Merge pull request #82 from astropy/pre-commit-ci-update-config
Browse files Browse the repository at this point in the history
[pre-commit.ci] pre-commit autoupdate
  • Loading branch information
astrofrog authored Sep 5, 2024
2 parents e6996c5 + bda9295 commit 0b40b6e
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 11 deletions.
8 changes: 6 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
directory: ".github/workflows"
schedule:
interval: "monthly"
interval: "weekly"
groups:
actions:
patterns:
- "*"
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v4.6.0
hooks:
- id: check-added-large-files
- id: check-case-conflict
Expand All @@ -12,25 +12,25 @@ repos:
exclude: ".*(data.*|extern.*|licenses.*|.*.fits)$"

- repo: https://github.com/psf/black-pre-commit-mirror
rev: 23.11.0
rev: 24.8.0
hooks:
- id: black

- repo: https://github.com/scientific-python/cookie
rev: 2023.11.17
rev: 2024.08.19
hooks:
- id: sp-repo-review

- repo: https://github.com/codespell-project/codespell
rev: v2.2.6
rev: v2.3.0
hooks:
- id: codespell
args: ["--write-changes"]
additional_dependencies:
- tomli

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.1.7"
rev: "v0.6.3"
hooks:
- id: ruff
args: ["--fix", "--show-fixes"]
Expand Down
6 changes: 2 additions & 4 deletions extension_helpers/tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,8 @@ def run_cmd(cmd, args, path=None, raise_error=True):

if raise_error and return_code != 0:
raise RuntimeError(
"The command `{}` with args {!r} exited with code {}.\n"
"Stdout:\n\n{}\n\nStderr:\n\n{}".format(
cmd, list(args), return_code, streams[0], streams[1]
)
f"The command `{cmd}` with args {list(args)!r} exited with code {return_code}.\n"
f"Stdout:\n\n{streams[0]}\n\nStderr:\n\n{streams[1]}"
)

return streams + (return_code,)
Expand Down
1 change: 1 addition & 0 deletions extension_helpers/tests/py311_backports.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
agrees to be bound by the terms and conditions of this License
Agreement.
"""

import os
from contextlib import AbstractContextManager

Expand Down

0 comments on commit 0b40b6e

Please sign in to comment.