diff options
| author | Jeroen Wijenbergh <jeroenwijenbergh@protonmail.com> | 2024-04-25 11:38:45 +0200 |
|---|---|---|
| committer | Jeroen Wijenbergh <46386452+jwijenbergh@users.noreply.github.com> | 2024-04-26 16:21:18 +0200 |
| commit | 9a3d9d701f12cda91cae0193968b3068408b7cbf (patch) | |
| tree | 560add844741c4e49869b423a3c4382570324728 | |
| parent | 977f3a12b5c39c312136e6b2424e60b3b1e9725f (diff) | |
Prepare release: Format using ruff instead of black
| -rwxr-xr-x | prepare_release.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/prepare_release.sh b/prepare_release.sh index 7ee8281..feea72b 100755 --- a/prepare_release.sh +++ b/prepare_release.sh @@ -9,8 +9,8 @@ if [ -z "$1" ]; then exit 1 fi -if ! command -v "black" &>/dev/null; then - echo "please install black for formatting the python wrapper" +if ! command -v "ruff" &>/dev/null; then + echo "please install ruff for formatting the python wrapper" exit 1 fi @@ -38,10 +38,10 @@ if [[ $(git diff) ]]; then fi # Format all Python files -git ls-files | grep '.py$' | xargs -I {} black --quiet {} >/dev/null +git ls-files | grep '.py$' | xargs -I {} ruff format --quiet {} >/dev/null if [[ $(git diff) ]]; then git add -u - git commit -m "Format: Run Black" + git commit -m "Format: Run Ruff" fi # Replace version number |
