Skip to content
Snippets Groups Projects
Verified Commit b362b363 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Correctly call eslint and prettier in tox

parent 83627d78
No related branches found
Tags 3.0b0
1 merge request!56Release 3.0b0
Pipeline #113818 passed with warnings
......@@ -5,8 +5,6 @@ envlist = py39,py310,py311
[testenv]
whitelist_externals = poetry
sudo
sh
skip_install = true
envdir = {toxworkdir}/globalenv
commands_pre =
......@@ -28,8 +26,8 @@ commands =
poetry run black --check --diff aleksis/
poetry run isort -c --diff --stdout aleksis/
poetry run flake8 {posargs} aleksis/
sh -c "aleksis-admin yarn run prettier --check --ignore-path=$(pwd)/.prettierignore $(pwd)"
sh -c "aleksis-admin yarn run eslint $(pwd)/aleksis/**/*/frontend/**/*.{js,vue} --config=$(pwd)/.eslintrc.js --resolve-plugins-relative-to=."
poetry run sh -c "aleksis-admin yarn run prettier --check --ignore-path={toxinidir}/.prettierignore {toxinidir}"
poetry run sh -c "aleksis-admin yarn run eslint {toxinidir}/aleksis/**/*/frontend/**/*.{js,vue} --config={toxinidir}/.eslintrc.js --resolve-plugins-relative-to=."
[testenv:security]
commands =
......@@ -49,7 +47,7 @@ commands = poetry run make -C docs/ html {posargs}
commands =
poetry run isort aleksis/
poetry run black aleksis/
sh -c "aleksis-admin yarn run prettier --write --ignore-path=$(pwd)/.prettierignore $(pwd)"
poetry run sh -c "aleksis-admin yarn run prettier --write --ignore-path={toxinidir}/.prettierignore {toxinidir}"
[testenv:makemessages]
commands =
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment