From a0e2622ef3c4931633e57e3bbd1078862be9c432 Mon Sep 17 00:00:00 2001 From: Callahan Date: Thu, 16 Feb 2023 18:32:22 -0600 Subject: [PATCH] lint(shellcheck): replace `find` with `git ls-files` (#33) Signed-off-by: Callahan Kovacs --- tox.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index ae5b0b277b..13da7b152d 100644 --- a/tox.ini +++ b/tox.ini @@ -63,7 +63,7 @@ env_dir = {work_dir}/linting runner = ignore_env_name_mismatch [shellcheck] -find = find {tox_root} \( -name .git -o -name .tox \) -prune -o -print +find = git ls-files filter = file --mime-type -Nnf- | grep shellscript | cut -f1 -d: [testenv:lint-{black,ruff,shellcheck,codespell,yaml}]