Skip to content

Commit e83bfa4

Browse files
chore: Lock file maintenance
Signed-off-by: Edgar Ramírez-Mondragón <edgarrm358@gmail.com>
1 parent 9f734ac commit e83bfa4

4 files changed

Lines changed: 96 additions & 125 deletions

File tree

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@ jobs:
2727
- "3.14"
2828
- "3.15"
2929
steps:
30-
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
31-
- uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
30+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
31+
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
3232
id: setup-python
3333
with:
3434
python-version: ${{ matrix.python-version }}
3535
allow-prereleases: true
3636
- name: Install uv
37-
uses: astral-sh/setup-uv@61cb8a9741eeb8a550a1b8544337180c0fc8476b # v7.2.0
37+
uses: astral-sh/setup-uv@eac588ad8def6316056a12d4907a9d4d84ff7a3b # v7.3.0
3838
with:
3939
version: ">=0.9.0"
4040
- name: Install dependencies

.pre-commit-config.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
ci:
22
autofix_prs: true
3+
autofix_commit_msg: "style: pre-commit fixes"
34
autoupdate_schedule: quarterly
5+
autoupdate_commit_msg: 'chore(deps): update pre-commit hooks'
46

57
repos:
68
- repo: https://github.com/pre-commit/pre-commit-hooks
@@ -13,7 +15,7 @@ repos:
1315
- id: trailing-whitespace
1416

1517
- repo: https://github.com/astral-sh/ruff-pre-commit
16-
rev: v0.14.13
18+
rev: v0.15.1
1719
hooks:
1820
- id: ruff
1921
args: [ --fix ]

tests/test_thanks.py

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,7 @@ def test_thanker(httpserver: HTTPServer, author: DummyAuthor, expected: str) ->
5050
repo = "my_gh_repo"
5151
base_url = httpserver.url_for("/")
5252

53-
httpserver.expect_request(
54-
f"/repos/{org}/{repo}",
55-
method="GET",
56-
).respond_with_json(
53+
httpserver.expect_request(f"/repos/{org}/{repo}").respond_with_json(
5754
{
5855
"id": 12,
5956
"name": repo,
@@ -62,21 +59,15 @@ def test_thanker(httpserver: HTTPServer, author: DummyAuthor, expected: str) ->
6259
},
6360
)
6461

65-
httpserver.expect_request(
66-
f"/orgs/{org}",
67-
method="GET",
68-
).respond_with_json(
62+
httpserver.expect_request(f"/orgs/{org}").respond_with_json(
6963
{
7064
"id": 34,
7165
"login": org,
7266
"url": f"{base_url}orgs/{org}",
7367
},
7468
)
7569

76-
httpserver.expect_request(
77-
f"/orgs/{org}/members",
78-
method="GET",
79-
).respond_with_json(
70+
httpserver.expect_request(f"/orgs/{org}/members").respond_with_json(
8071
[
8172
{"id": 1, "login": "user1"},
8273
{"id": 2, "login": "user2"},
@@ -89,8 +80,7 @@ def test_thanker(httpserver: HTTPServer, author: DummyAuthor, expected: str) ->
8980
commit = git.GitCommit(sha, title)
9081

9182
httpserver.expect_request(
92-
f"/repos/{org}/{repo}/commits/{commit.rev}",
93-
method="GET",
83+
f"/repos/{org}/{repo}/commits/{commit.rev}"
9484
).respond_with_json(
9585
{
9686
"sha": commit.rev,

0 commit comments

Comments
 (0)