Skip to content
Snippets Groups Projects
Verified Commit 3b1718e6 authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Merge remote-tracking branch 'origin/check/update-tox-ini' into optimize-tox

parents 202ccddd 276c0776
No related branches found
No related tags found
1 merge request!1338Optimize tox for speed with linting/reformatting
Pipeline #158363 failed
......@@ -14,8 +14,6 @@ commands_pre =
poetry run aleksis-admin collectstatic --no-input
commands =
poetry run pytest --cov=. {posargs} aleksis/
setenv=
NODE_PATH=cache/node_modules/
[testenv:selenium]
setenv =
......@@ -27,11 +25,11 @@ setenv =
[testenv:lint]
commands_pre =
poetry install --only=dev
yarnpkg
yarnpkg --cwd=.dev-js
commands =
poetry run ruff check {posargs} aleksis/
yarnpkg run prettier {posargs} --check .
yarnpkg run eslint aleksis/**/*/frontend/**/*.{js,vue}
yarnpkg --cwd=.dev-js run prettier --ignore-path={toxinidir}/.prettierignore {posargs} --check ..
yarnpkg --cwd=.dev-js run eslint ../aleksis/**/*/frontend/**/*.{js,vue} --config={toxinidir}/.eslintrc.js --resolve-plugins-relative-to=.
[testenv:security]
commands_pre =
......@@ -48,16 +46,16 @@ commands = poetry build
[testenv:docs]
commands_pre =
poetry install
poetry install --with docs
commands = poetry run make -C docs/ html {posargs}
[testenv:reformat]
commands_pre =
poetry install --only=dev
yarnpkg
yarnpkg --cwd=.dev-js
commands =
poetry run ruff format aleksis/
yarnpkg run prettier --write .
yarnpkg --cwd=.dev-js run prettier --ignore-path={toxinidir}/.prettierignore --write ..
[testenv:makemessages]
commands_pre =
......
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