github-rest-api 0.54.0__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.
@@ -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
- `CLAUDE.md` -> `AGENTS.md` link would get a different mdformat flavor than
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
- skill_files = [f for f in md_files if Path(f).name in ("SKILL.md", "AGENTS.md")]
378
- other_files = [f for f in md_files if f not in skill_files]
379
- checks = []
380
- if other_files:
381
- checks.append(
382
- Check(
383
- "markdown: mdformat",
384
- command=_cmd(
385
- fix,
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,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: github-rest-api
3
- Version: 0.54.0
3
+ Version: 0.55.0
4
4
  Summary: Simple wrapper of GitHub REST APIs.
5
5
  Author-email: Ben Du <longendu@yahoo.com>
6
6
  Classifier: Programming Language :: Python :: 3 :: Only
@@ -3,7 +3,7 @@ github_rest_api/github.py,sha256=aLUGo-An28MvQ-jDgLIhSnfiGDSj5EjGSry4xosqqaM,698
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=RvQbN0QuktCVlxI0CP960AkRo0CMy55qPQJk93r4yds,28569
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.54.0.dist-info/METADATA,sha256=SAVH3ZzIN15yRqe-F2IuEmvNL-i2VcUzMP--3iW1LKQ,913
24
- github_rest_api-0.54.0.dist-info/WHEEL,sha256=W3fkpkm7-wf9vBI5Z-7s0eWkeM-spu78I8Neb98DeEg,87
25
- github_rest_api-0.54.0.dist-info/entry_points.txt,sha256=VPhTN8_eU6-3CnbygXBJRVDX9iEbhVhCeneoMfLZGKk,792
26
- github_rest_api-0.54.0.dist-info/RECORD,,
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,,