Skip to content

Commit

Permalink
Keep order of paths given by user for less surprises
Browse files Browse the repository at this point in the history
  • Loading branch information
evolutics committed Apr 6, 2024
1 parent e041447 commit 9d946cf
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions test/expected/check.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
Would run: alejandra --check -- alejandra.nix
Would run: black --check --diff -- black.py isort.py pylint.py
Would run: git diff --check 'HEAD^' -- alejandra.nix black.py git gitlint hadolint.Dockerfile html5validator.htm htmlhint.htm isort.py jsonnet_lint.jsonnet jsonnetfmt.jsonnet prettier.js pylint.py rufo.rb shellcheck.sh shfmt.sh stylelint.css terraform.tf
Would run: git diff --check 'HEAD^' -- alejandra.nix black.py git gitlint hadolint.Dockerfile html5validator.htm htmlhint.htm isort.py jsonnetfmt.jsonnet jsonnet_lint.jsonnet prettier.js pylint.py rufo.rb shellcheck.sh shfmt.sh stylelint.css terraform.tf
Would run: gitlint --ignore body-is-missing
Would run: hadolint -- hadolint.Dockerfile
Would run: html5validator --also-check-css --also-check-svg --Werror -- html5validator.htm htmlhint.htm stylelint.css
Would run: htmlhint -- html5validator.htm htmlhint.htm
Would run: isort --force-single-line-imports --from-first --profile black --check --diff -- black.py isort.py pylint.py
Would run: jsonnet-lint -- jsonnet_lint.jsonnet jsonnetfmt.jsonnet
Would run: jsonnetfmt --test -- jsonnet_lint.jsonnet jsonnetfmt.jsonnet
Would run: jsonnet-lint -- jsonnetfmt.jsonnet jsonnet_lint.jsonnet
Would run: jsonnetfmt --test -- jsonnetfmt.jsonnet jsonnet_lint.jsonnet
Would run: prettier --plugin … --check -- html5validator.htm htmlhint.htm prettier.js stylelint.css
Would run: pylint -- black.py isort.py pylint.py
Would run: rufo --check -- rufo.rb
Expand Down
2 changes: 1 addition & 1 deletion test/expected/fix.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Would run: alejandra -- alejandra.nix
Would run: black -- black.py isort.py pylint.py
Would run: isort --force-single-line-imports --from-first --profile black -- black.py isort.py pylint.py
Would run: jsonnetfmt --in-place -- jsonnet_lint.jsonnet jsonnetfmt.jsonnet
Would run: jsonnetfmt --in-place -- jsonnetfmt.jsonnet jsonnet_lint.jsonnet
Would run: prettier --plugin … --write -- html5validator.htm htmlhint.htm prettier.js stylelint.css
Would run: rufo --simple-exit -- rufo.rb
Would run: shfmt --binary-next-line --case-indent --indent 2 --list --simplify --write -- shellcheck.sh shfmt.sh
Expand Down
2 changes: 1 addition & 1 deletion travelkit/run_cleaners.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def _resolve_command(cleaner, context):
return ()

if cleaner.file_patterns:
file_paths = tuple(sorted(_filter_file_paths(cleaner, context)))
file_paths = tuple(_filter_file_paths(cleaner, context))
if file_paths:
return command + file_paths
return ()
Expand Down

0 comments on commit 9d946cf

Please sign in to comment.