Skip to content

Commit

Permalink
fix script
Browse files Browse the repository at this point in the history
  • Loading branch information
maksym-arutyunyan committed Aug 9, 2024
1 parent 861bc5e commit c2b433e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ jobs:
# Also ignore `./misc/` and `./tests/`.
run: |
git ls-files -co --exclude-standard \
| grep -vE "^tests/|^misc/" \
| grep -vE "^misc/|^tests/|^README.md" \
| xargs -I {} bash -c "./target/release/keepsorted '{}' --features gitignore" {}
env:
RUST_BACKTRACE: 1
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ The tool can also recognize comments attached to non-comment lines, like this:
# Before:
dependencies = [
# Keep sorted.
'ddd',
'ccc',
'aaa',
# TODO: remove this dependency.
'bbb',
'aaa',
'ccc',
'ddd',
]

# After:
Expand Down
2 changes: 1 addition & 1 deletion run-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ fmt_status=$?
# Run `keepsorted` only on files that are not ignored by `.gitignore`.
# Also ignore `./misc/` and `./tests/`.
git ls-files -co --exclude-standard \
| grep -vE "^misc/|^tests/" \
| grep -vE "^misc/|^tests/|^README.md" \
| xargs -I {} bash -c "./target/release/keepsorted '{}' --features gitignore" {}
keepsorted_status=$?

Expand Down

0 comments on commit c2b433e

Please sign in to comment.