Skip to content
Snippets Groups Projects
Commit 96a8d2c9 authored by Aleksolotl's avatar Aleksolotl
Browse files

Update tox.ini

parent b326f395
No related branches found
No related tags found
No related merge requests found
Pipeline #196176 failed
[tox] [tox]
skipsdist = True skipsdist = True
skip_missing_interpreters = true skip_missing_interpreters = true
envlist = py39,py310,py311 envlist = py310,py311,py312
[testenv] [testenv]
allowlist_externals = allowlist_externals =
...@@ -24,12 +24,13 @@ setenv = ...@@ -24,12 +24,13 @@ setenv =
[testenv:lint] [testenv:lint]
commands_pre = commands_pre =
poetry install --only=dev poetry install
yarnpkg --cwd=.dev-js yarnpkg --cwd=.dev-js
commands = commands =
poetry run ruff check {posargs} aleksis/ poetry run ruff check {posargs} aleksis/
# yarnpkg --cwd=.dev-js run prettier --ignore-path={toxinidir}/.prettierignore {posargs} --check .. 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=. poetry run aleksis-admin graphql_schema --schema aleksis.core.schema.schema --out .dev-js/schema.json
yarnpkg --cwd=.dev-js run eslint ../aleksis/**/*/frontend/**/*.{js,vue,graphql} --config={toxinidir}/.dev-js/.eslintrc.js
[testenv:security] [testenv:security]
commands_pre = commands_pre =
...@@ -42,6 +43,8 @@ commands = ...@@ -42,6 +43,8 @@ commands =
commands_pre = commands_pre =
poetry install poetry install
poetry run sh -c "cd aleksis; aleksis-admin compilemessages" poetry run sh -c "cd aleksis; aleksis-admin compilemessages"
poetry run aleksis-admin yarn install
poetry run aleksis-admin compile_scss
commands = poetry build commands = poetry build
[testenv:docs] [testenv:docs]
...@@ -55,7 +58,7 @@ commands_pre = ...@@ -55,7 +58,7 @@ commands_pre =
yarnpkg --cwd=.dev-js yarnpkg --cwd=.dev-js
commands = commands =
poetry run ruff format aleksis/ poetry run ruff format aleksis/
# yarnpkg --cwd=.dev-js run prettier --ignore-path={toxinidir}/.prettierignore --write .. yarnpkg --cwd=.dev-js run prettier --ignore-path={toxinidir}/.prettierignore --write ..
[testenv:makemessages] [testenv:makemessages]
commands_pre = 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