Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A handful of fixes #23

Merged
merged 4 commits into from
Jan 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 11 additions & 8 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,19 @@ inputs:
python:
description: 'Run Python formatting'
required: false
default: false
default: 'false'
docstrings:
description: 'Run Docstrings formatting'
required: false
default: false
default: 'false'
markdown:
description: 'Run Markdown formatting'
required: false
default: false
default: 'false'
spelling:
description: 'Run Spelling checks'
required: false
default: false
default: 'false'
runs:
using: 'composite'
steps:
Expand All @@ -34,7 +34,7 @@ runs:
fetch-depth: 0

- name: Install Dependencies
# tomli required for codespell with pyproject.tom
# tomli required for codespell with pyproject.toml
run: |
pip install --no-cache -q ruff docformatter mdformat-gfm codespell tomli
shell: bash
Expand Down Expand Up @@ -69,15 +69,18 @@ runs:
- name: Run Codespell
if: inputs.spelling == 'true'
run: |
codespell -w || true
codespell \
-w \
--ignore-words-list "crate,nd,strack,dota,ane,segway,fo,gool,winn,commend" \
--skip '*.csv,*venv*,docs/??/,docs/mkdocs_??.yml' || true
shell: bash

- name: Commit and Push Changes
run: |
git add -A
if ! git diff --staged --quiet; then
git config --global user.name "glenn-jocher"
git config --global user.email "glenn.jocher@ultralytics.com"
git config --global user.name "Ultralytics Actions"
git config --global user.email "noreply@ultralytics.com"
git commit -m "Auto-format by Ultralytics actions"
git push origin $BRANCH
else
Expand Down
96 changes: 0 additions & 96 deletions pyproject.toml

This file was deleted.

Loading