diff --git a/tox.ini b/tox.ini index e1283a1b72150383c5c2c9b7fbf43abb6cdf6ea2..ab0b339293ee5ad2e51dadaf0b9e05713bd5e3fa 100644 --- a/tox.ini +++ b/tox.ini @@ -9,7 +9,7 @@ whitelist_externals = poetry skip_install = true envdir = {toxworkdir}/globalenv commands_pre = - poetry install + poetry install -E ldap poetry run aleksis-admin yarn install poetry run aleksis-admin collectstatic --no-input commands = @@ -35,6 +35,8 @@ commands = [testenv:build] commands_pre = + poetry install + poetry run sh -c "cd aleksis; aleksis-admin compilemessages" commands = poetry build [testenv:docs] @@ -45,6 +47,11 @@ commands = poetry run isort aleksis/ poetry run black aleksis/ +[testenv:makemessages] +commands = + poetry run aleksis-admin makemessages --no-wrap -e html,txt,py,email -i static -l ar -l de_DE -l fr -l nb_NO -l tr_TR -l la -l ru_RU -l uk_UA + poetry run aleksis-admin makemessages --no-wrap -d djangojs -i **/node_modules -l ar -l de_DE -l fr -l nb_NO -l tr_TR -l la -l ru_RU -l uk_UA + [flake8] max_line_length = 100 exclude = migrations,tests