From da5f002a50a999f660b48da16bfa9cb494d93d95 Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Sun, 16 Jun 2024 20:53:03 +0200 Subject: [PATCH 1/2] Refactor code for speed and clarity --- .github/workflows/format.yml | 2 +- README.md | 50 ++++++++++++++++++------------------ 2 files changed, 26 insertions(+), 26 deletions(-) diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index 377f7e10..9fe73c86 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -25,7 +25,7 @@ jobs: prettier: true # format YAML spelling: false # check spelling links: false # check broken links - summary: true # print PR summary with GPT4 (requires 'openai_api_key' or 'openai_azure_api_key' and 'openai_azure_endpoint') + summary: true # print PR summary with GPT4 (requires 'openai_api_key' or 'openai_azure_api_key' and 'openai_azure_endpoint') openai_azure_api_key: ${{ secrets.OPENAI_AZURE_API_KEY }} openai_azure_endpoint: ${{ secrets.OPENAI_AZURE_ENDPOINT }} # openai_api_key: ${{ secrets.OPENAI_API_KEY }} diff --git a/README.md b/README.md index 85a6f831..37afe5bf 100644 --- a/README.md +++ b/README.md @@ -33,31 +33,31 @@ To use this action in your Ultralytics repository: 2. **Add the Action:** Use the Ultralytics Actions in your workflow file as follows: - ```yaml - name: Ultralytics Actions - - on: - push: - branches: [main] - pull_request: - branches: [main] - types: [opened, closed, synchronize] - - jobs: - format: - runs-on: ubuntu-latest - steps: - - name: Run Ultralytics Formatting - uses: ultralytics/actions@main - with: - token: ${{ secrets.GITHUB_TOKEN }} # automatically generated, do not modify - python: true # format Python code and docstrings - markdown: true # format Markdown and YAML - spelling: true # check spelling - links: true # check broken links - summary: true # print PR summary with GPT4 (requires 'openai_api_key' or 'openai_azure_api_key' and 'openai_azure_endpoint') - openai_api_key: # your OpenAI API key - ``` + ```yaml + name: Ultralytics Actions + + on: + push: + branches: [main] + pull_request: + branches: [main] + types: [opened, closed, synchronize] + + jobs: + format: + runs-on: ubuntu-latest + steps: + - name: Run Ultralytics Formatting + uses: ultralytics/actions@main + with: + token: ${{ secrets.GITHUB_TOKEN }} # automatically generated, do not modify + python: true # format Python code and docstrings + markdown: true # format Markdown and YAML + spelling: true # check spelling + links: true # check broken links + summary: true # print PR summary with GPT4 (requires 'openai_api_key' or 'openai_azure_api_key' and 'openai_azure_endpoint') + openai_api_key: # your OpenAI API key + ``` 3. **Customize:** Adjust the workflow settings as necessary for your project. From 1d83521fa410cdfd1b7d697c8d8470aa58743517 Mon Sep 17 00:00:00 2001 From: UltralyticsAssistant Date: Sun, 16 Jun 2024 18:53:27 +0000 Subject: [PATCH 2/2] Auto-format by https://ultralytics.com/actions --- README.md | 50 +++++++++++++++++++++++++------------------------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/README.md b/README.md index 37afe5bf..40e5d032 100644 --- a/README.md +++ b/README.md @@ -33,31 +33,31 @@ To use this action in your Ultralytics repository: 2. **Add the Action:** Use the Ultralytics Actions in your workflow file as follows: - ```yaml - name: Ultralytics Actions - - on: - push: - branches: [main] - pull_request: - branches: [main] - types: [opened, closed, synchronize] - - jobs: - format: - runs-on: ubuntu-latest - steps: - - name: Run Ultralytics Formatting - uses: ultralytics/actions@main - with: - token: ${{ secrets.GITHUB_TOKEN }} # automatically generated, do not modify - python: true # format Python code and docstrings - markdown: true # format Markdown and YAML - spelling: true # check spelling - links: true # check broken links - summary: true # print PR summary with GPT4 (requires 'openai_api_key' or 'openai_azure_api_key' and 'openai_azure_endpoint') - openai_api_key: # your OpenAI API key - ``` + ```yaml + name: Ultralytics Actions + + on: + push: + branches: [main] + pull_request: + branches: [main] + types: [opened, closed, synchronize] + + jobs: + format: + runs-on: ubuntu-latest + steps: + - name: Run Ultralytics Formatting + uses: ultralytics/actions@main + with: + token: ${{ secrets.GITHUB_TOKEN }} # automatically generated, do not modify + python: true # format Python code and docstrings + markdown: true # format Markdown and YAML + spelling: true # check spelling + links: true # check broken links + summary: true # print PR summary with GPT4 (requires 'openai_api_key' or 'openai_azure_api_key' and 'openai_azure_endpoint') + openai_api_key: # your OpenAI API key + ``` 3. **Customize:** Adjust the workflow settings as necessary for your project.