ultralytics-actions 0.0.40__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- actions/__init__.py +25 -0
- actions/first_interaction.py +403 -0
- actions/summarize_pr.py +244 -0
- actions/summarize_release.py +194 -0
- actions/update_markdown_code_blocks.py +173 -0
- actions/utils/__init__.py +19 -0
- actions/utils/common_utils.py +111 -0
- actions/utils/github_utils.py +163 -0
- actions/utils/openai_utils.py +45 -0
- ultralytics_actions-0.0.40.dist-info/LICENSE +661 -0
- ultralytics_actions-0.0.40.dist-info/METADATA +144 -0
- ultralytics_actions-0.0.40.dist-info/RECORD +15 -0
- ultralytics_actions-0.0.40.dist-info/WHEEL +5 -0
- ultralytics_actions-0.0.40.dist-info/entry_points.txt +6 -0
- ultralytics_actions-0.0.40.dist-info/top_level.txt +1 -0
@@ -0,0 +1,144 @@
|
|
1
|
+
Metadata-Version: 2.2
|
2
|
+
Name: ultralytics-actions
|
3
|
+
Version: 0.0.40
|
4
|
+
Summary: Ultralytics Actions for GitHub automation and PR management.
|
5
|
+
Author-email: Glenn Jocher <glenn.jocher@ultralytics.com>
|
6
|
+
Maintainer-email: Ultralytics <hello@ultralytics.com>
|
7
|
+
License: AGPL-3.0
|
8
|
+
Project-URL: Homepage, https://ultralytics.com
|
9
|
+
Project-URL: Source, https://github.com/ultralytics/actions
|
10
|
+
Project-URL: Documentation, https://docs.ultralytics.com
|
11
|
+
Project-URL: Bug Reports, https://github.com/ultralytics/actions/issues
|
12
|
+
Project-URL: Changelog, https://github.com/ultralytics/actions/releases
|
13
|
+
Keywords: github-actions,ci-cd,workflow-automation,pull-request-automation,code-review,release-automation,markdown-processing,devops,github-integration,continuous-integration
|
14
|
+
Classifier: Development Status :: 4 - Beta
|
15
|
+
Classifier: Intended Audience :: Developers
|
16
|
+
Classifier: License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)
|
17
|
+
Classifier: Programming Language :: Python :: 3
|
18
|
+
Classifier: Programming Language :: Python :: 3.8
|
19
|
+
Classifier: Programming Language :: Python :: 3.9
|
20
|
+
Classifier: Programming Language :: Python :: 3.10
|
21
|
+
Classifier: Programming Language :: Python :: 3.11
|
22
|
+
Classifier: Programming Language :: Python :: 3.12
|
23
|
+
Classifier: Programming Language :: Python :: 3.13
|
24
|
+
Classifier: Topic :: Software Development
|
25
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
26
|
+
Classifier: Topic :: Internet :: WWW/HTTP
|
27
|
+
Classifier: Operating System :: OS Independent
|
28
|
+
Requires-Python: >=3.8
|
29
|
+
Description-Content-Type: text/markdown
|
30
|
+
License-File: LICENSE
|
31
|
+
Requires-Dist: requests>=2.32.3
|
32
|
+
Requires-Dist: ruff>=0.9.1
|
33
|
+
Requires-Dist: docformatter>=1.7.5
|
34
|
+
Provides-Extra: dev
|
35
|
+
Requires-Dist: pytest; extra == "dev"
|
36
|
+
|
37
|
+
<a href="https://www.ultralytics.com/" target="_blank"><img src="https://raw.githubusercontent.com/ultralytics/assets/main/logo/Ultralytics_Logotype_Original.svg" width="320" alt="Ultralytics logo"></a>
|
38
|
+
|
39
|
+
# 🚀 Ultralytics Actions: Auto-Formatting for Python, Markdown, and Swift
|
40
|
+
|
41
|
+
Welcome to the [Ultralytics Actions](https://github.com/ultralytics/actions) repository, your go-to solution for maintaining consistent code quality across Ultralytics Python and Swift projects. This GitHub Action is designed to automate the formatting of Python, Markdown, and Swift files, ensuring adherence to our coding standards.
|
42
|
+
|
43
|
+
[![GitHub Actions Marketplace](https://img.shields.io/badge/Marketplace-Ultralytics_Actions-blue?style=flat&logo=github)](https://github.com/marketplace/actions/ultralytics-actions) [![Ultralytics Actions](https://github.com/ultralytics/actions/actions/workflows/format.yml/badge.svg)](https://github.com/ultralytics/actions/actions/workflows/format.yml) <a href="https://discord.com/invite/ultralytics"><img alt="Discord" src="https://img.shields.io/discord/1089800235347353640?logo=discord&logoColor=white&label=Discord&color=blue"></a> <a href="https://community.ultralytics.com/"><img alt="Ultralytics Forums" src="https://img.shields.io/discourse/users?server=https%3A%2F%2Fcommunity.ultralytics.com&logo=discourse&label=Forums&color=blue"></a> <a href="https://reddit.com/r/ultralytics"><img alt="Ultralytics Reddit" src="https://img.shields.io/reddit/subreddit-subscribers/ultralytics?style=flat&logo=reddit&logoColor=white&label=Reddit&color=blue"></a>
|
44
|
+
|
45
|
+
[![PyPI version](https://badge.fury.io/py/ultralytics-actions.svg)](https://badge.fury.io/py/ultralytics-actions) [![Downloads](https://static.pepy.tech/badge/ultralytics-actions)](https://www.pepy.tech/projects/ultralytics-actions)
|
46
|
+
|
47
|
+
## 📄 Actions Description
|
48
|
+
|
49
|
+
Ultralytics Actions automatically applies formats, updates, and enhancements:
|
50
|
+
|
51
|
+
- **Python Code:** Using [Ruff](https://github.com/astral-sh/ruff), a fast Python auto-formatter.
|
52
|
+
- **Markdown Files:** With [Prettier](https://github.com/prettier/prettier), ensuring a consistent style in documentation.
|
53
|
+
- **Docstrings:** Utilizing [docformatter](https://github.com/PyCQA/docformatter) for clean and standardized documentation comments.
|
54
|
+
- **Swift Code:** Formatting Swift files using `swift-format` to ensure consistent coding style across Swift projects. _(Requires `macos-latest` to run correctly.)_
|
55
|
+
- **Spell Check:** Employing [codespell](https://github.com/codespell-project/codespell) for catching common misspellings.
|
56
|
+
- **Broken Links Check:** Implementing [Lychee](https://github.com/lycheeverse/lychee) to report broken links in docs and markdown files.
|
57
|
+
- **PR Summary:** Generating concise [OpenAI](https://openai.com/) GPT4o-powered PR summaries, enhancing PR clarity.
|
58
|
+
- **Auto-labeling:** Applying relevant labels to issues and pull requests using [OpenAI](https://openai.com/) GPT-4o for intelligent categorization.
|
59
|
+
|
60
|
+
## 🛠 How It Works
|
61
|
+
|
62
|
+
Ultralytics Actions triggers on various GitHub events:
|
63
|
+
|
64
|
+
- **Push Events:** Automatically formats code when changes are pushed to the `main` branch.
|
65
|
+
- **Pull Requests:**
|
66
|
+
- Ensures that contributions meet our formatting standards before merging.
|
67
|
+
- Generates a concise summary of the changes using GPT-4o.
|
68
|
+
- Automatically applies relevant labels using GPT-4o for intelligent categorization.
|
69
|
+
- **Issues:** Automatically applies relevant labels using GPT-4o when new issues are created.
|
70
|
+
|
71
|
+
These actions help maintain code quality, improve documentation clarity, and streamline the review process by providing consistent formatting, informative summaries, and appropriate categorization of issues and pull requests.
|
72
|
+
|
73
|
+
## 🔧 Setting Up the Action
|
74
|
+
|
75
|
+
To use this action in your Ultralytics repository:
|
76
|
+
|
77
|
+
1. **Create a Workflow File:** In your repository, create a file under `.github/workflows/`, e.g., `ultralytics-actions.yml`.
|
78
|
+
|
79
|
+
2. **Add the Action:** Use the Ultralytics Actions in your workflow file as follows:
|
80
|
+
|
81
|
+
```yaml
|
82
|
+
name: Ultralytics Actions
|
83
|
+
|
84
|
+
on:
|
85
|
+
issues:
|
86
|
+
types: [opened]
|
87
|
+
pull_request:
|
88
|
+
branches: [main]
|
89
|
+
types: [opened, closed]
|
90
|
+
|
91
|
+
jobs:
|
92
|
+
format:
|
93
|
+
runs-on: ubuntu-latest
|
94
|
+
steps:
|
95
|
+
- name: Run Ultralytics Formatting
|
96
|
+
uses: ultralytics/actions@main
|
97
|
+
with:
|
98
|
+
token: ${{ secrets.GITHUB_TOKEN }} # automatically generated, do not modify
|
99
|
+
labels: true # autolabel issues and PRs
|
100
|
+
python: true # format Python code and docstrings
|
101
|
+
prettier: true # format YAML, JSON, Markdown and CSS
|
102
|
+
swift: true # format Swift code (requires 'macos-latest' runner)
|
103
|
+
spelling: true # check spelling
|
104
|
+
links: true # check broken links
|
105
|
+
summary: true # print PR summary with GPT4o (requires 'openai_api_key')
|
106
|
+
openai_api_key: # your OpenAI API key
|
107
|
+
```
|
108
|
+
|
109
|
+
3. **Customize:** Adjust the workflow settings as necessary for your project.
|
110
|
+
|
111
|
+
## 💡 Contribute
|
112
|
+
|
113
|
+
Ultralytics thrives on community collaboration; we immensely value your involvement! We urge you to peruse our [Contributing Guide](https://docs.ultralytics.com/help/contributing/) for detailed insights on how you can participate. Don't forget to share your feedback with us by contributing to our [Survey](https://www.ultralytics.com/survey?utm_source=github&utm_medium=social&utm_campaign=Survey). A heartfelt thank you 🙏 goes out to everyone who has already contributed!
|
114
|
+
|
115
|
+
<a href="https://github.com/ultralytics/yolov5/graphs/contributors">
|
116
|
+
<img width="100%" src="https://github.com/ultralytics/assets/raw/main/im/image-contributors.png" alt="Ultralytics open-source contributors"></a>
|
117
|
+
|
118
|
+
## 📄 License
|
119
|
+
|
120
|
+
Ultralytics presents two distinct licensing paths to accommodate a variety of scenarios:
|
121
|
+
|
122
|
+
- **AGPL-3.0 License**: This official [OSI-approved](https://opensource.org/license) open-source license is perfectly aligned with the goals of students, enthusiasts, and researchers who believe in the virtues of open collaboration and shared wisdom. Details are available in the [LICENSE](https://github.com/ultralytics/ultralytics/blob/main/LICENSE) document.
|
123
|
+
- **Enterprise License**: Tailored for commercial deployment, this license authorizes the unfettered integration of Ultralytics software and AI models within commercial goods and services, without the copyleft stipulations of AGPL-3.0. Should your use case demand an enterprise solution, direct your inquiries to [Ultralytics Licensing](https://www.ultralytics.com/license).
|
124
|
+
|
125
|
+
## 📮 Contact
|
126
|
+
|
127
|
+
For bugs or feature suggestions pertaining to Ultralytics, please lodge an issue via [GitHub Issues](https://github.com/ultralytics/pre-commit/issues). You're also invited to participate in our [Discord](https://discord.com/invite/ultralytics) community to engage in discussions and seek advice!
|
128
|
+
|
129
|
+
<br>
|
130
|
+
<div align="center">
|
131
|
+
<a href="https://github.com/ultralytics"><img src="https://github.com/ultralytics/assets/raw/main/social/logo-social-github.png" width="3%" alt="Ultralytics GitHub"></a>
|
132
|
+
<img src="https://github.com/ultralytics/assets/raw/main/social/logo-transparent.png" width="3%" alt="space">
|
133
|
+
<a href="https://www.linkedin.com/company/ultralytics/"><img src="https://github.com/ultralytics/assets/raw/main/social/logo-social-linkedin.png" width="3%" alt="Ultralytics LinkedIn"></a>
|
134
|
+
<img src="https://github.com/ultralytics/assets/raw/main/social/logo-transparent.png" width="3%" alt="space">
|
135
|
+
<a href="https://twitter.com/ultralytics"><img src="https://github.com/ultralytics/assets/raw/main/social/logo-social-twitter.png" width="3%" alt="Ultralytics Twitter"></a>
|
136
|
+
<img src="https://github.com/ultralytics/assets/raw/main/social/logo-transparent.png" width="3%" alt="space">
|
137
|
+
<a href="https://youtube.com/ultralytics?sub_confirmation=1"><img src="https://github.com/ultralytics/assets/raw/main/social/logo-social-youtube.png" width="3%" alt="Ultralytics YouTube"></a>
|
138
|
+
<img src="https://github.com/ultralytics/assets/raw/main/social/logo-transparent.png" width="3%" alt="space">
|
139
|
+
<a href="https://www.tiktok.com/@ultralytics"><img src="https://github.com/ultralytics/assets/raw/main/social/logo-social-tiktok.png" width="3%" alt="Ultralytics TikTok"></a>
|
140
|
+
<img src="https://github.com/ultralytics/assets/raw/main/social/logo-transparent.png" width="3%" alt="space">
|
141
|
+
<a href="https://ultralytics.com/bilibili"><img src="https://github.com/ultralytics/assets/raw/main/social/logo-social-bilibili.png" width="3%" alt="Ultralytics BiliBili"></a>
|
142
|
+
<img src="https://github.com/ultralytics/assets/raw/main/social/logo-transparent.png" width="3%" alt="space">
|
143
|
+
<a href="https://discord.com/invite/ultralytics"><img src="https://github.com/ultralytics/assets/raw/main/social/logo-social-discord.png" width="3%" alt="Ultralytics Discord"></a>
|
144
|
+
</div>
|
@@ -0,0 +1,15 @@
|
|
1
|
+
actions/__init__.py,sha256=Nt0UM8yKv4lys_t-BRvlvGbyoHTR8pcDCP10Qia7Suc,749
|
2
|
+
actions/first_interaction.py,sha256=U-TcRUYlueoNh98KbF_i5WycYfuX8lrNBrWDDKphLzU,17853
|
3
|
+
actions/summarize_pr.py,sha256=Uq5TswlNZuxn7HenU8KhWr3z3m496_THWsW1zlYKQvU,11173
|
4
|
+
actions/summarize_release.py,sha256=eEah_BkvdHaFsR1Nxx-WbiOC_xmoXfzQpfwQS0cGJqc,8462
|
5
|
+
actions/update_markdown_code_blocks.py,sha256=WBNcMD_KKsZS-qSPBn6O1G0ggQ_VrT-jTQffbg7xH_M,6369
|
6
|
+
actions/utils/__init__.py,sha256=W82wrlyOAlIPDOtJkgSKjJVXn6QMAoa43gEI0-aWkjs,441
|
7
|
+
actions/utils/common_utils.py,sha256=wnpp541-toZU0CSxihXyk7WSbGI_s5j3TRFOlb-OSEI,4093
|
8
|
+
actions/utils/github_utils.py,sha256=LCTn-GEceXM1EPixpnOFwkPjW5zyfoDs_SMbHMLUESE,7074
|
9
|
+
actions/utils/openai_utils.py,sha256=CU0FdeUW6qeZsxYCC2NUcGjns7w6hDvT8PwaRlG7j9E,1829
|
10
|
+
ultralytics_actions-0.0.40.dist-info/LICENSE,sha256=hIahDEOTzuHCU5J2nd07LWwkLW7Hko4UFO__ffsvB-8,34523
|
11
|
+
ultralytics_actions-0.0.40.dist-info/METADATA,sha256=oHLGFMSEijCWrCgUiijfmMTNaGPE6cnMKonUnsRF6JQ,10561
|
12
|
+
ultralytics_actions-0.0.40.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
13
|
+
ultralytics_actions-0.0.40.dist-info/entry_points.txt,sha256=GowvOFplj0C7JmsjbKcbpgLpdf2r921pcaOQkAHWZRA,378
|
14
|
+
ultralytics_actions-0.0.40.dist-info/top_level.txt,sha256=5apM5x80QlJcGbACn1v3fkmIuL1-XQCKcItJre7w7Tw,8
|
15
|
+
ultralytics_actions-0.0.40.dist-info/RECORD,,
|
@@ -0,0 +1,6 @@
|
|
1
|
+
[console_scripts]
|
2
|
+
ultralytics-actions-first-interaction = actions.first_interaction:main
|
3
|
+
ultralytics-actions-info = actions.utils:ultralytics_actions_info
|
4
|
+
ultralytics-actions-summarize-pr = actions.summarize_pr:main
|
5
|
+
ultralytics-actions-summarize-release = actions.summarize_release:main
|
6
|
+
ultralytics-actions-update-markdown-code-blocks = actions.update_markdown_code_blocks:main
|
@@ -0,0 +1 @@
|
|
1
|
+
actions
|