github-rest-api 0.52.0__tar.gz → 0.53.0__tar.gz

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.
Files changed (52) hide show
  1. {github_rest_api-0.52.0 → github_rest_api-0.53.0}/PKG-INFO +1 -1
  2. {github_rest_api-0.52.0 → github_rest_api-0.53.0}/github_rest_api/scripts/lint_repo.py +2 -2
  3. {github_rest_api-0.52.0 → github_rest_api-0.53.0}/pyproject.toml +1 -1
  4. {github_rest_api-0.52.0 → github_rest_api-0.53.0}/tests/test_lint_repo.py +19 -5
  5. {github_rest_api-0.52.0 → github_rest_api-0.53.0}/uv.lock +1 -1
  6. {github_rest_api-0.52.0 → github_rest_api-0.53.0}/.devcontainer/devcontainer.json +0 -0
  7. {github_rest_api-0.52.0 → github_rest_api-0.53.0}/.github/workflows/check-workflow-template.yaml +0 -0
  8. {github_rest_api-0.52.0 → github_rest_api-0.53.0}/.github/workflows/claude.yaml +0 -0
  9. {github_rest_api-0.52.0 → github_rest_api-0.53.0}/.github/workflows/create-pr-dev-to-main.yaml +0 -0
  10. {github_rest_api-0.52.0 → github_rest_api-0.53.0}/.github/workflows/create-pr-to-dev.yaml +0 -0
  11. {github_rest_api-0.52.0 → github_rest_api-0.53.0}/.github/workflows/create-pr-to-main.yaml +0 -0
  12. {github_rest_api-0.52.0 → github_rest_api-0.53.0}/.github/workflows/merge-pr.yaml +0 -0
  13. {github_rest_api-0.52.0 → github_rest_api-0.53.0}/.github/workflows/pr-workflow.yaml +0 -0
  14. {github_rest_api-0.52.0 → github_rest_api-0.53.0}/.github/workflows/release.yaml +0 -0
  15. {github_rest_api-0.52.0 → github_rest_api-0.53.0}/.github/workflows/remove-branch.yaml +0 -0
  16. {github_rest_api-0.52.0 → github_rest_api-0.53.0}/.gitignore +0 -0
  17. {github_rest_api-0.52.0 → github_rest_api-0.53.0}/AGENTS.md +0 -0
  18. {github_rest_api-0.52.0 → github_rest_api-0.53.0}/CLAUDE.md +0 -0
  19. {github_rest_api-0.52.0 → github_rest_api-0.53.0}/README.md +0 -0
  20. {github_rest_api-0.52.0 → github_rest_api-0.53.0}/github_rest_api/__init__.py +0 -0
  21. {github_rest_api-0.52.0 → github_rest_api-0.53.0}/github_rest_api/github.py +0 -0
  22. {github_rest_api-0.52.0 → github_rest_api-0.53.0}/github_rest_api/pr_content.py +0 -0
  23. {github_rest_api-0.52.0 → github_rest_api-0.53.0}/github_rest_api/scripts/__init__.py +0 -0
  24. {github_rest_api-0.52.0 → github_rest_api-0.53.0}/github_rest_api/scripts/cargo/__init__.py +0 -0
  25. {github_rest_api-0.52.0 → github_rest_api-0.53.0}/github_rest_api/scripts/cargo/benchmark.py +0 -0
  26. {github_rest_api-0.52.0 → github_rest_api-0.53.0}/github_rest_api/scripts/cargo/profiling.py +0 -0
  27. {github_rest_api-0.52.0 → github_rest_api-0.53.0}/github_rest_api/scripts/cargo/utils.py +0 -0
  28. {github_rest_api-0.52.0 → github_rest_api-0.53.0}/github_rest_api/scripts/container/__init__.py +0 -0
  29. {github_rest_api-0.52.0 → github_rest_api-0.53.0}/github_rest_api/scripts/container/build_container_images.py +0 -0
  30. {github_rest_api-0.52.0 → github_rest_api-0.53.0}/github_rest_api/scripts/container/config_container.py +0 -0
  31. {github_rest_api-0.52.0 → github_rest_api-0.53.0}/github_rest_api/scripts/container/update_version_containerfile.py +0 -0
  32. {github_rest_api-0.52.0 → github_rest_api-0.53.0}/github_rest_api/scripts/github/__init__.py +0 -0
  33. {github_rest_api-0.52.0 → github_rest_api-0.53.0}/github_rest_api/scripts/github/auto_merge_pull_request.py +0 -0
  34. {github_rest_api-0.52.0 → github_rest_api-0.53.0}/github_rest_api/scripts/github/create_github_repo.py +0 -0
  35. {github_rest_api-0.52.0 → github_rest_api-0.53.0}/github_rest_api/scripts/github/create_pull_request.py +0 -0
  36. {github_rest_api-0.52.0 → github_rest_api-0.53.0}/github_rest_api/scripts/github/release_on_github.py +0 -0
  37. {github_rest_api-0.52.0 → github_rest_api-0.53.0}/github_rest_api/scripts/github/remove_branch.py +0 -0
  38. {github_rest_api-0.52.0 → github_rest_api-0.53.0}/github_rest_api/scripts/github/upload_image_to_issue.py +0 -0
  39. {github_rest_api-0.52.0 → github_rest_api-0.53.0}/github_rest_api/scripts/utils.py +0 -0
  40. {github_rest_api-0.52.0 → github_rest_api-0.53.0}/github_rest_api/utils.py +0 -0
  41. {github_rest_api-0.52.0 → github_rest_api-0.53.0}/memory/MEMORY.md +0 -0
  42. {github_rest_api-0.52.0 → github_rest_api-0.53.0}/memory/feedback_test_runner.md +0 -0
  43. {github_rest_api-0.52.0 → github_rest_api-0.53.0}/tests/__init__.py +0 -0
  44. {github_rest_api-0.52.0 → github_rest_api-0.53.0}/tests/test_auto_merge_pull_request.py +0 -0
  45. {github_rest_api-0.52.0 → github_rest_api-0.53.0}/tests/test_build_container_images.py +0 -0
  46. {github_rest_api-0.52.0 → github_rest_api-0.53.0}/tests/test_create_github_repo.py +0 -0
  47. {github_rest_api-0.52.0 → github_rest_api-0.53.0}/tests/test_create_pull_request.py +0 -0
  48. {github_rest_api-0.52.0 → github_rest_api-0.53.0}/tests/test_github.py +0 -0
  49. {github_rest_api-0.52.0 → github_rest_api-0.53.0}/tests/test_pr_content.py +0 -0
  50. {github_rest_api-0.52.0 → github_rest_api-0.53.0}/tests/test_release_on_github.py +0 -0
  51. {github_rest_api-0.52.0 → github_rest_api-0.53.0}/tests/test_upload_image_to_issue.py +0 -0
  52. {github_rest_api-0.52.0 → github_rest_api-0.53.0}/tests/test_utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: github-rest-api
3
- Version: 0.52.0
3
+ Version: 0.53.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
@@ -363,7 +363,7 @@ def build_markdown_checks(files: Sequence[str], fix: bool = False) -> list[Check
363
363
  md_files = _files_matching(files, "*.md")
364
364
  if not md_files:
365
365
  return []
366
- skill_files = [f for f in md_files if Path(f).name == "SKILL.md"]
366
+ skill_files = [f for f in md_files if Path(f).name in ("SKILL.md", "AGENTS.md")]
367
367
  other_files = [f for f in md_files if f not in skill_files]
368
368
  checks = []
369
369
  if other_files:
@@ -380,7 +380,7 @@ def build_markdown_checks(files: Sequence[str], fix: bool = False) -> list[Check
380
380
  if skill_files:
381
381
  checks.append(
382
382
  Check(
383
- "markdown: mdformat (SKILL.md)",
383
+ "markdown: mdformat (SKILL.md/AGENTS.md)",
384
384
  command=_cmd(
385
385
  fix,
386
386
  ["mdformat", "--number", *skill_files],
@@ -4,7 +4,7 @@ requires = [ "hatchling" ]
4
4
 
5
5
  [project]
6
6
  name = "github-rest-api"
7
- version = "0.52.0"
7
+ version = "0.53.0"
8
8
  description = "Simple wrapper of GitHub REST APIs."
9
9
  readme = "README.md"
10
10
  authors = [ { name = "Ben Du", email = "longendu@yahoo.com" } ]
@@ -174,18 +174,21 @@ def test_build_rust_scripts_checks_includes_all_files():
174
174
  def test_build_markdown_checks_splits_skill_md(tmp_path):
175
175
  (tmp_path / "docs").mkdir()
176
176
  (tmp_path / "docs" / "SKILL.md").write_text("")
177
+ (tmp_path / "AGENTS.md").write_text("")
177
178
  (tmp_path / "README.md").write_text("")
178
- checks = build_markdown_checks(["README.md", "docs/SKILL.md"])
179
+ checks = build_markdown_checks(["README.md", "AGENTS.md", "docs/SKILL.md"])
179
180
  by_name = {c.name: c for c in checks}
180
181
  assert by_name["markdown: mdformat"].command == ["mdformat", "--check", "README.md"]
181
- assert by_name["markdown: mdformat (SKILL.md)"].command == [
182
+ assert by_name["markdown: mdformat (SKILL.md/AGENTS.md)"].command == [
182
183
  "mdformat",
183
184
  "--check",
184
185
  "--number",
186
+ "AGENTS.md",
185
187
  "docs/SKILL.md",
186
188
  ]
187
189
  assert by_name["markdown: codespell"].command == [
188
190
  "codespell",
191
+ "AGENTS.md",
189
192
  "README.md",
190
193
  "docs/SKILL.md",
191
194
  ]
@@ -531,24 +534,35 @@ def test_build_lua_checks_fix_mode():
531
534
  def test_build_markdown_checks_fix_mode(tmp_path):
532
535
  (tmp_path / "docs").mkdir()
533
536
  (tmp_path / "docs" / "SKILL.md").write_text("")
537
+ (tmp_path / "AGENTS.md").write_text("")
534
538
  (tmp_path / "README.md").write_text("")
535
- checks = build_markdown_checks(["README.md", "docs/SKILL.md"], fix=True)
539
+ checks = build_markdown_checks(
540
+ ["README.md", "AGENTS.md", "docs/SKILL.md"], fix=True
541
+ )
536
542
  by_name = {c.name: c.command for c in checks}
537
543
  assert by_name["markdown: mdformat"] == ["mdformat", "README.md"]
538
- assert by_name["markdown: mdformat (SKILL.md)"] == [
544
+ assert by_name["markdown: mdformat (SKILL.md/AGENTS.md)"] == [
539
545
  "mdformat",
540
546
  "--number",
547
+ "AGENTS.md",
541
548
  "docs/SKILL.md",
542
549
  ]
543
550
  assert by_name["markdown: codespell"] == [
544
551
  "codespell",
545
552
  "-w",
553
+ "AGENTS.md",
546
554
  "README.md",
547
555
  "docs/SKILL.md",
548
556
  ]
549
557
  # lychee has no autofix and stays non-fatal: unchanged.
550
558
  lychee = next(c for c in checks if c.name == "markdown: lychee")
551
- assert lychee.command == ["lychee", "--no-progress", "README.md", "docs/SKILL.md"]
559
+ assert lychee.command == [
560
+ "lychee",
561
+ "--no-progress",
562
+ "AGENTS.md",
563
+ "README.md",
564
+ "docs/SKILL.md",
565
+ ]
552
566
  assert lychee.fatal is False
553
567
 
554
568
 
@@ -542,7 +542,7 @@ wheels = [
542
542
 
543
543
  [[package]]
544
544
  name = "github-rest-api"
545
- version = "0.52.0"
545
+ version = "0.53.0"
546
546
  source = { editable = "." }
547
547
  dependencies = [
548
548
  { name = "dulwich" },