Skip to content

Commit 639b93d

Browse files
committed
Show diff in check-extern for better debuging
1 parent c279742 commit 639b93d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tox.ini

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,14 +70,14 @@ commands =
7070

7171
[testenv:{vendor,check-extern}]
7272
skip_install = True
73-
allowlist_externals = sh
73+
allowlist_externals = git, sh
7474
deps =
7575
path
7676
cogapp
7777
commands =
7878
vendor: python -m tools.vendored
79-
vendor: sh -c "git grep -l -F '\[\[\[cog' | xargs cog -I {toxinidir} -r" # update `*.extern`
80-
check-extern: sh -c "git grep -l -F '\[\[\[cog' | xargs cog -I {toxinidir} --check"
79+
sh -c "git grep -l -F '\[\[\[cog' | xargs -t cog -I {toxinidir} -r" # update `*.extern`
80+
check-extern: git diff --exit-code
8181

8282
[testenv:generate-validation-code]
8383
skip_install = True

0 commit comments

Comments
 (0)