Skip to content

Commit bf57322

Browse files
committed
Update tox testenv 'vendor' to use cog to automatically update/check *.extern
1 parent a19973b commit bf57322

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tox.ini

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,16 @@ pass_env = *
6969
commands =
7070
python tools/finalize.py
7171

72-
[testenv:vendor]
72+
[testenv:{vendor,check-extern}]
7373
skip_install = True
74+
allowlist_externals = sh
7475
deps =
7576
path
77+
cogapp
7678
commands =
77-
python -m tools.vendored
79+
vendor: python -m tools.vendored
80+
vendor: sh -c "git grep -l -F '\[\[\[cog' | xargs cog -I {toxinidir} -r" # update `*.extern`
81+
check-extern: sh -c "git grep -l -F '\[\[\[cog' | xargs cog -I {toxinidir} --check"
7882

7983
[testenv:generate-validation-code]
8084
skip_install = True

0 commit comments

Comments
 (0)