Update `tox`.

- Replace `whitelist_externals` (deprecated) with `allowlist_externals`.
- Update translations test env for running `git diff` only with the `locale/` folder.
master
Fabio Caccamo 2022-11-23 17:40:06 +01:00
parent 18f865beaa
commit 8e9aa16a5b
1 changed files with 3 additions and 3 deletions

View File

@ -60,9 +60,9 @@ setenv =
DATABASE_ENGINE=sqlite DATABASE_ENGINE=sqlite
deps = deps =
-r requirements.txt -r requirements.txt
whitelist_externals = git allowlist_externals = git
commands = commands =
python -m django makemessages --all --add-location=file python -m django makemessages --all --add-location=file
python -m django compilemessages --ignore ".tox" --ignore ".venv" --ignore "build" --ignore "venv" python -m django compilemessages --ignore ".tox" --ignore ".venv" --ignore "build" --ignore "venv"
git diff git diff admin_interface/locale/
git diff-index --quiet HEAD git diff-index --quiet HEAD admin_interface/locale/