ultralytics-actions 0.0.64__tar.gz → 0.0.65__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 (21) hide show
  1. {ultralytics_actions-0.0.64/ultralytics_actions.egg-info → ultralytics_actions-0.0.65}/PKG-INFO +1 -1
  2. {ultralytics_actions-0.0.64 → ultralytics_actions-0.0.65}/actions/__init__.py +1 -1
  3. {ultralytics_actions-0.0.64 → ultralytics_actions-0.0.65}/actions/utils/common_utils.py +39 -38
  4. {ultralytics_actions-0.0.64 → ultralytics_actions-0.0.65}/tests/test_urls.py +1 -1
  5. {ultralytics_actions-0.0.64 → ultralytics_actions-0.0.65/ultralytics_actions.egg-info}/PKG-INFO +1 -1
  6. {ultralytics_actions-0.0.64 → ultralytics_actions-0.0.65}/LICENSE +0 -0
  7. {ultralytics_actions-0.0.64 → ultralytics_actions-0.0.65}/README.md +0 -0
  8. {ultralytics_actions-0.0.64 → ultralytics_actions-0.0.65}/actions/first_interaction.py +0 -0
  9. {ultralytics_actions-0.0.64 → ultralytics_actions-0.0.65}/actions/summarize_pr.py +0 -0
  10. {ultralytics_actions-0.0.64 → ultralytics_actions-0.0.65}/actions/summarize_release.py +0 -0
  11. {ultralytics_actions-0.0.64 → ultralytics_actions-0.0.65}/actions/update_markdown_code_blocks.py +0 -0
  12. {ultralytics_actions-0.0.64 → ultralytics_actions-0.0.65}/actions/utils/__init__.py +0 -0
  13. {ultralytics_actions-0.0.64 → ultralytics_actions-0.0.65}/actions/utils/github_utils.py +0 -0
  14. {ultralytics_actions-0.0.64 → ultralytics_actions-0.0.65}/actions/utils/openai_utils.py +0 -0
  15. {ultralytics_actions-0.0.64 → ultralytics_actions-0.0.65}/pyproject.toml +0 -0
  16. {ultralytics_actions-0.0.64 → ultralytics_actions-0.0.65}/setup.cfg +0 -0
  17. {ultralytics_actions-0.0.64 → ultralytics_actions-0.0.65}/ultralytics_actions.egg-info/SOURCES.txt +0 -0
  18. {ultralytics_actions-0.0.64 → ultralytics_actions-0.0.65}/ultralytics_actions.egg-info/dependency_links.txt +0 -0
  19. {ultralytics_actions-0.0.64 → ultralytics_actions-0.0.65}/ultralytics_actions.egg-info/entry_points.txt +0 -0
  20. {ultralytics_actions-0.0.64 → ultralytics_actions-0.0.65}/ultralytics_actions.egg-info/requires.txt +0 -0
  21. {ultralytics_actions-0.0.64 → ultralytics_actions-0.0.65}/ultralytics_actions.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ultralytics-actions
3
- Version: 0.0.64
3
+ Version: 0.0.65
4
4
  Summary: Ultralytics Actions for GitHub automation and PR management.
5
5
  Author-email: Glenn Jocher <glenn.jocher@ultralytics.com>
6
6
  Maintainer-email: Ultralytics <hello@ultralytics.com>
@@ -22,4 +22,4 @@
22
22
  # ├── test_summarize_pr.py
23
23
  # └── ...
24
24
 
25
- __version__ = "0.0.64"
25
+ __version__ = "0.0.65"
@@ -56,45 +56,46 @@ URL_IGNORE_LIST = { # use a set (not frozenset) to update with possible private
56
56
  "storage.googleapis.com", # private GCS buckets
57
57
  "{", # possible Python fstring
58
58
  "(", # breaks pattern matches
59
- "api", # ignore api endpoints
60
- }
61
- REDIRECT_IGNORE_LIST = {
62
- "{", # possible f-string
63
- "}", # possible f-string
64
- "/es/",
65
- "/us/",
66
- "en-us",
67
- "es-es",
68
- "/latest/",
69
- "/2022/",
70
- "/2023/",
71
- "/2024/",
72
- "/2025/",
73
- "/2026/",
74
- "/2027/",
75
- "/2028/",
76
- "/2029/",
77
- "/2030/",
78
- "credential",
79
- "login",
80
- "consent",
81
- "verify",
82
- "badge",
83
- "shields.io",
84
- "bit.ly",
85
- "ow.ly",
86
- "https://youtu.be/",
87
- "latex.codecogs.com",
88
- "svg.image",
89
- "?view=azureml",
90
- "ultralytics.com/actions",
91
- "ultralytics.com/bilibili",
92
- "ultralytics.com/images",
93
- "app.gong.io/call?",
94
- "https://code.visualstudio.com/", # errors
95
- "?rdt=", # problems with reddit redirecting to https://www.reddit.com/r/ultralytics/?rdt=48616
96
- "objects.githubusercontent.com", # Prevent replacement with temporary signed GitHub asset URLs
59
+ "api.", # ignore api endpoints
97
60
  }
61
+ REDIRECT_IGNORE_LIST = frozenset(
62
+ {
63
+ "{", # possible f-string
64
+ "}", # possible f-string
65
+ "/es/",
66
+ "/us/",
67
+ "en-us",
68
+ "es-es",
69
+ "/latest/",
70
+ ":text", # ignore text-selection links due to parsing complications
71
+ ":443", # https://getcruise.com/ -> https://www.gm.com:443/innovation/path-to-autonomous
72
+ "404",
73
+ "notfound",
74
+ "unsupported", # https://labs.google/fx/tools/video-fx/unsupported-country
75
+ "authorize", # nature articles like https://idp.nature.com/authorize?response_type=cookie&client...
76
+ "credential",
77
+ "login",
78
+ "consent",
79
+ "verify",
80
+ "badge",
81
+ "shields.io",
82
+ "bit.ly",
83
+ "ow.ly",
84
+ "https://youtu.be/",
85
+ "latex.codecogs.com",
86
+ "svg.image",
87
+ "?view=azureml",
88
+ "?utm_",
89
+ "redirect",
90
+ "ultralytics.com/actions",
91
+ "ultralytics.com/bilibili",
92
+ "ultralytics.com/images",
93
+ "app.gong.io/call?",
94
+ "https://code.visualstudio.com/", # errors
95
+ "?rdt=", # problems with reddit redirecting to https://www.reddit.com/r/ultralytics/?rdt=48616
96
+ "objects.githubusercontent.com", # Prevent replacement with temporary signed GitHub asset URLs
97
+ }
98
+ )
98
99
  URL_PATTERN = re.compile(
99
100
  r"\[([^]]+)]\(([^)]+)\)" # Matches Markdown links [text](url)
100
101
  r"|"
@@ -78,7 +78,7 @@ def test_markdown_links(verbose):
78
78
  def test_mixed_formats(verbose):
79
79
  """Tests URL detection in mixed text formats (HTML, Markdown, plain text) using check_links_in_string."""
80
80
  text = "A <a href='https://1.com'>link</a> and [markdown](https://2.org/) and https://3.net"
81
- result, urls = check_links_in_string(text, return_bad=True)
81
+ result, urls = check_links_in_string(text, verbose, return_bad=True)
82
82
  assert result is False
83
83
  assert set(urls) == {"https://1.com", "https://3.net"}
84
84
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ultralytics-actions
3
- Version: 0.0.64
3
+ Version: 0.0.65
4
4
  Summary: Ultralytics Actions for GitHub automation and PR management.
5
5
  Author-email: Glenn Jocher <glenn.jocher@ultralytics.com>
6
6
  Maintainer-email: Ultralytics <hello@ultralytics.com>