Skip to content
Snippets Groups Projects
Commit 35baeb9e authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Merge branch 'check/update-tox-ini' into 'master'

Update tox.ini

See merge request !150
parents d4ae34f3 36aba5a2
No related branches found
No related tags found
1 merge request!150Update tox.ini
Pipeline #195602 failed
Pipeline: AlekSIS

#195605

    from typing import Any, Dict
    from typing import Any
    from django.contrib import messages
    from django.contrib.auth.mixins import PermissionRequiredMixin as GlobalPermissionRequiredMixin
    ......@@ -81,7 +81,7 @@ class CreateFAQSection(GlobalPermissionRequiredMixin, AdvancedCreateView):
    messages.success(self.request, self.success_message)
    return redirect("order_faq")
    def get_context_data(self, **kwargs: Any) -> Dict[str, Any]:
    def get_context_data(self, **kwargs: Any) -> dict[str, Any]:
    context = super().get_context_data(**kwargs)
    context["title"] = _("Create FAQ section")
    context["layout"] = Layout(Row("name"), Row("icon"), Row("show"))
    ......@@ -107,7 +107,7 @@ class CreateFAQQuestion(GlobalPermissionRequiredMixin, AdvancedCreateView):
    messages.success(self.request, self.success_message)
    return redirect("order_faq")
    def get_context_data(self, **kwargs: Any) -> Dict[str, Any]:
    def get_context_data(self, **kwargs: Any) -> dict[str, Any]:
    context = super().get_context_data(**kwargs)
    context["title"] = _("Create FAQ question")
    context["layout"] = Layout(
    ......@@ -124,7 +124,7 @@ class UpdateFAQQuestion(GlobalPermissionRequiredMixin, AdvancedEditView):
    success_url = reverse_lazy("order_faq")
    permission_required = "hjelp.change_faq_rule"
    def get_context_data(self, **kwargs: Any) -> Dict[str, Any]:
    def get_context_data(self, **kwargs: Any) -> dict[str, Any]:
    context = super().get_context_data(**kwargs)
    context["title"] = _("Edit FAQ question")
    context["layout"] = Layout(
    ......
    [tox]
    skipsdist = True
    skip_missing_interpreters = true
    envlist = py39,py310,py311
    envlist = py310,py311,py312
    [testenv]
    allowlist_externals =
    ......@@ -24,12 +24,13 @@ setenv =
    [testenv:lint]
    commands_pre =
    poetry install --only=dev
    poetry install
    yarnpkg --cwd=.dev-js
    commands =
    poetry run ruff check {posargs} aleksis/
    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]
    commands_pre =
    ......@@ -42,6 +43,8 @@ commands =
    commands_pre =
    poetry install
    poetry run sh -c "cd aleksis; aleksis-admin compilemessages"
    poetry run aleksis-admin yarn install
    poetry run aleksis-admin compile_scss
    commands = poetry build
    [testenv:docs]
    ......
    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