mirror of
https://github.com/retspen/webvirtcloud
synced 2026-10-18 00:50:07 +00:00
fix(linter): format console/views.py and disable htmlhint/jscpd on django templates
This commit is contained in:
parent
d9112b797f
commit
a444a2ba40
2 changed files with 11 additions and 11 deletions
4
.github/workflows/linter.yml
vendored
4
.github/workflows/linter.yml
vendored
|
|
@ -68,11 +68,13 @@ jobs:
|
||||||
- name: Lint Code Base
|
- name: Lint Code Base
|
||||||
uses: docker://github/super-linter:latest
|
uses: docker://github/super-linter:latest
|
||||||
env:
|
env:
|
||||||
FILTER_REGEX_EXCLUDE: .*(static|scss|venv|locale)/.*
|
FILTER_REGEX_EXCLUDE: .*(static|scss|venv|locale|templates)/.*
|
||||||
DEFAULT_BRANCH: master
|
DEFAULT_BRANCH: master
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
VALIDATE_ALL_CODEBASE: false
|
VALIDATE_ALL_CODEBASE: false
|
||||||
VALIDATE_MARKDOWN: false
|
VALIDATE_MARKDOWN: false
|
||||||
|
VALIDATE_HTML: false
|
||||||
|
VALIDATE_JSCPD: false
|
||||||
VALIDATE_ANSIBLE: false
|
VALIDATE_ANSIBLE: false
|
||||||
VALIDATE_CLOJURE: false
|
VALIDATE_CLOJURE: false
|
||||||
VALIDATE_COFFEE: false
|
VALIDATE_COFFEE: false
|
||||||
|
|
|
||||||
|
|
@ -1,23 +1,21 @@
|
||||||
|
# pylint: disable=no-name-in-module,no-member
|
||||||
import re
|
import re
|
||||||
|
|
||||||
from vrtManager.util import randomUUID
|
|
||||||
|
|
||||||
from django.http.response import HttpResponseServerError
|
|
||||||
from django.shortcuts import render
|
|
||||||
from django.utils.translation import gettext_lazy as _
|
|
||||||
from libvirt import libvirtError
|
|
||||||
|
|
||||||
from accounts.models import UserInstance
|
from accounts.models import UserInstance
|
||||||
from appsettings.settings import app_settings
|
from appsettings.settings import app_settings
|
||||||
|
from django.http.response import HttpResponseServerError
|
||||||
|
from django.shortcuts import render
|
||||||
|
from django.utils.translation import gettext_lazy as _
|
||||||
from instances.models import Instance
|
from instances.models import Instance
|
||||||
|
from libvirt import libvirtError
|
||||||
from vrtManager.instance import wvmInstance
|
from vrtManager.instance import wvmInstance
|
||||||
from webvirtcloud.settings import (
|
from webvirtcloud.settings import (
|
||||||
|
SOCKETIO_PUBLIC_HOST,
|
||||||
|
SOCKETIO_PUBLIC_PATH,
|
||||||
|
SOCKETIO_PUBLIC_PORT,
|
||||||
WS_PUBLIC_HOST,
|
WS_PUBLIC_HOST,
|
||||||
WS_PUBLIC_PATH,
|
WS_PUBLIC_PATH,
|
||||||
WS_PUBLIC_PORT,
|
WS_PUBLIC_PORT,
|
||||||
SOCKETIO_PUBLIC_HOST,
|
|
||||||
SOCKETIO_PUBLIC_PORT,
|
|
||||||
SOCKETIO_PUBLIC_PATH,
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue