github-rest-api 0.53.1__py3-none-any.whl → 0.55.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- github_rest_api/github.py +1 -1
- github_rest_api/scripts/lint_repo.py +12 -26
- {github_rest_api-0.53.1.dist-info → github_rest_api-0.55.0.dist-info}/METADATA +1 -1
- {github_rest_api-0.53.1.dist-info → github_rest_api-0.55.0.dist-info}/RECORD +6 -6
- {github_rest_api-0.53.1.dist-info → github_rest_api-0.55.0.dist-info}/WHEEL +0 -0
- {github_rest_api-0.53.1.dist-info → github_rest_api-0.55.0.dist-info}/entry_points.txt +0 -0
github_rest_api/github.py
CHANGED
|
@@ -40,7 +40,7 @@ DEFAULT_PR_MODEL = "anthropic/claude-haiku-4-5-20251001"
|
|
|
40
40
|
# for AI reviewers that only comment instead of submitting a formal review.
|
|
41
41
|
DEFAULT_AUTO_MERGE_MARKER = "AUTO_MERGE_APPROVED"
|
|
42
42
|
# Conventional-commit title types eligible for auto-merge.
|
|
43
|
-
DEFAULT_AUTO_MERGE_TYPES = ("build", "chore", "ci", "docs", "deps")
|
|
43
|
+
DEFAULT_AUTO_MERGE_TYPES = ("build", "chore", "ci", "docs", "deps", "style")
|
|
44
44
|
# A PR is only auto-merged once its head commit is at least this old, an anti-race
|
|
45
45
|
# guard so a PR that momentarily reads `clean` before CI registers is not merged.
|
|
46
46
|
# A just-created PR is simply deferred to the next run, never dropped, so a small
|
|
@@ -49,8 +49,8 @@ def list_tracked_files(root: Path) -> list[str]:
|
|
|
49
49
|
Symbolic links are excluded: a link's content is linted through its
|
|
50
50
|
target (when tracked), and linting the link too would run every check
|
|
51
51
|
twice on the same content -- or, worse, with conflicting options (e.g. a
|
|
52
|
-
|
|
53
|
-
its target).
|
|
52
|
+
link in another directory could pick up a different `.mdformat.toml`
|
|
53
|
+
than its target).
|
|
54
54
|
|
|
55
55
|
:param root: The root directory of the git repository (not an arbitrary
|
|
56
56
|
subdirectory of one -- the returned paths, and every command a check
|
|
@@ -374,31 +374,17 @@ def build_markdown_checks(files: Sequence[str], fix: bool = False) -> list[Check
|
|
|
374
374
|
md_files = _files_matching(files, "*.md")
|
|
375
375
|
if not md_files:
|
|
376
376
|
return []
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
["mdformat", *other_files],
|
|
387
|
-
["mdformat", "--check", *other_files],
|
|
388
|
-
),
|
|
389
|
-
)
|
|
390
|
-
)
|
|
391
|
-
if skill_files:
|
|
392
|
-
checks.append(
|
|
393
|
-
Check(
|
|
394
|
-
"markdown: mdformat (SKILL.md/AGENTS.md)",
|
|
395
|
-
command=_cmd(
|
|
396
|
-
fix,
|
|
397
|
-
["mdformat", "--number", *skill_files],
|
|
398
|
-
["mdformat", "--check", "--number", *skill_files],
|
|
399
|
-
),
|
|
400
|
-
)
|
|
377
|
+
# Options such as `--number` are left to the repository's own
|
|
378
|
+
# `.mdformat.toml` (which mdformat looks up per file), rather than being
|
|
379
|
+
# hard-coded here.
|
|
380
|
+
checks = [
|
|
381
|
+
Check(
|
|
382
|
+
"markdown: mdformat",
|
|
383
|
+
command=_cmd(
|
|
384
|
+
fix, ["mdformat", *md_files], ["mdformat", "--check", *md_files]
|
|
385
|
+
),
|
|
401
386
|
)
|
|
387
|
+
]
|
|
402
388
|
checks.append(
|
|
403
389
|
Check(
|
|
404
390
|
"markdown: codespell",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
github_rest_api/__init__.py,sha256=cY28SPof_s_VfcsDe10lqfEFWFTpRkrmygz_EBsB-ec,410
|
|
2
|
-
github_rest_api/github.py,sha256=
|
|
2
|
+
github_rest_api/github.py,sha256=aLUGo-An28MvQ-jDgLIhSnfiGDSj5EjGSry4xosqqaM,69896
|
|
3
3
|
github_rest_api/pr_content.py,sha256=og1VwsMtwqwl-HUJcJrkwjUjFPw9E1k5xDtJVMAXBRo,10039
|
|
4
4
|
github_rest_api/utils.py,sha256=it5zHCNhXTut4M-PWR-BtWm63_rpFSc_xRc4rbDJ8Qw,3496
|
|
5
5
|
github_rest_api/scripts/__init__.py,sha256=NkHTngnnWXPc0JmO5mqVKjDf4JPofuwWjDW1SU3aE7Y,36
|
|
6
|
-
github_rest_api/scripts/lint_repo.py,sha256=
|
|
6
|
+
github_rest_api/scripts/lint_repo.py,sha256=BGoTvc8Iwb6Z5zluN-B27I_EIgxdzdxa9mTWFXflFNU,28116
|
|
7
7
|
github_rest_api/scripts/utils.py,sha256=qpyRqlXLpxWX0BByr6hKjvmTmK5LjdHgoujIgOJ6pIM,7869
|
|
8
8
|
github_rest_api/scripts/cargo/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
9
9
|
github_rest_api/scripts/cargo/benchmark.py,sha256=wtxM9nQxELEUliWu8EGWqb42TRTOK9ufj4GxqxJeIS4,8541
|
|
@@ -20,7 +20,7 @@ github_rest_api/scripts/github/create_pull_request.py,sha256=vmvZkQcQDjYHnECUW5q
|
|
|
20
20
|
github_rest_api/scripts/github/release_on_github.py,sha256=NWZIF6E76RWDVfyTUByupbRi3EWgJdLhqKF6g9rZo0o,4824
|
|
21
21
|
github_rest_api/scripts/github/remove_branch.py,sha256=iKZ4Y_lQlSOIfifC4plqP-B6pEMnFrknGMvV1oLnuLc,3538
|
|
22
22
|
github_rest_api/scripts/github/upload_image_to_issue.py,sha256=ccmRIjSFMLqnEZgT9gfVGiuqjtCKOmCw0prZ7qJhcbs,20744
|
|
23
|
-
github_rest_api-0.
|
|
24
|
-
github_rest_api-0.
|
|
25
|
-
github_rest_api-0.
|
|
26
|
-
github_rest_api-0.
|
|
23
|
+
github_rest_api-0.55.0.dist-info/METADATA,sha256=FDcRBvVZgwEo-mnGYeCd4DluAmUGuVSJnIyFmRXM8Dg,913
|
|
24
|
+
github_rest_api-0.55.0.dist-info/WHEEL,sha256=W3fkpkm7-wf9vBI5Z-7s0eWkeM-spu78I8Neb98DeEg,87
|
|
25
|
+
github_rest_api-0.55.0.dist-info/entry_points.txt,sha256=VPhTN8_eU6-3CnbygXBJRVDX9iEbhVhCeneoMfLZGKk,792
|
|
26
|
+
github_rest_api-0.55.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|