Skip to content

Commit 16b6c26

Browse files
authored
Merge pull request #981 from kevin1024/pre-commit-dependabot
pre-commit: Make Github Dependabot keep pre-commit hooks up to date
2 parents 9b58663 + f3243c7 commit 16b6c26

File tree

4 files changed

+8
-65
lines changed

4 files changed

+8
-65
lines changed

.github/dependabot.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,7 @@ updates:
99
directory: "/"
1010
schedule:
1111
interval: weekly
12+
- package-ecosystem: "pre-commit"
13+
directory: "/"
14+
schedule:
15+
interval: weekly

.github/workflows/pre-commit-detect-outdated.yml

Lines changed: 0 additions & 62 deletions
This file was deleted.

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33

44
repos:
55
- repo: https://github.com/astral-sh/ruff-pre-commit
6-
rev: v0.14.8
6+
rev: b831c3dc5d27d9da294ae4e915773b99aa24a7c5 # frozen: v0.15.10
77
hooks:
88
- id: ruff
99
args: ["--output-format=full"]
1010
- id: ruff-format
1111

1212
- repo: https://github.com/pre-commit/pre-commit-hooks
13-
rev: v6.0.0
13+
rev: 3e8a8703264a2f4a69428a0aa4dcb512790b2c8c # frozen: v6.0.0
1414
hooks:
1515
- id: check-merge-conflict
1616
- id: end-of-file-fixer

tests/unit/test_request.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ def test_headers():
2525

2626
def test_add_header_deprecated():
2727
req = Request("GET", "http://go.com/", "", {})
28-
pytest.deprecated_call(req.add_header, "foo", "bar")
28+
with pytest.deprecated_call():
29+
req.add_header("foo", "bar")
2930
assert req.headers == {"foo": "bar"}
3031

3132

0 commit comments

Comments
 (0)