Skip to content

Commit

Permalink
Hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiask committed Aug 31, 2022
1 parent 98a5baf commit 501fd12
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
18 changes: 9 additions & 9 deletions .pre-commit-config.yaml
@@ -1,19 +1,19 @@
exclude: ".yarn/|yarn.lock|\\.min\\.(css|js)$|static/ckeditor/ckeditor/|static/ckeditor/galleriffic/"
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.2.0
rev: v4.3.0
hooks:
- id: check-added-large-files
- id: check-merge-conflict
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/asottile/pyupgrade
rev: v2.32.1
rev: v2.37.3
hooks:
- id: pyupgrade
args: [--py38-plus]
- repo: https://github.com/adamchainz/django-upgrade
rev: 1.7.0
rev: 1.9.0
hooks:
- id: django-upgrade
args: [--target-version, "3.2"]
Expand All @@ -23,29 +23,29 @@ repos:
- id: isort
args: [--profile=black, --lines-after-imports=2, --combine-as]
- repo: https://github.com/psf/black
rev: 22.3.0
rev: 22.6.0
hooks:
- id: black
- repo: https://github.com/pycqa/flake8
rev: 4.0.1
rev: 5.0.4
hooks:
- id: flake8
args: ["--ignore=E203,E501,W503"]
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.6.2
rev: v3.0.0-alpha.0
hooks:
- id: prettier
args: [--list-different, --no-semi]
exclude: "^conf/|.*\\.html$"
- repo: https://github.com/pre-commit/mirrors-eslint
rev: v8.16.0
rev: v8.23.0
hooks:
- id: eslint
args: [--fix]
verbose: true
additional_dependencies:
- eslint@8.16.0
- eslint-config-prettier@8.5.0
- eslint@8.23.0
- eslint-config-prettier
- "@babel/core"
- "@babel/eslint-parser"
- "@babel/preset-env"
2 changes: 1 addition & 1 deletion ckeditor/static/ckeditor/ckeditor-init.js
Expand Up @@ -24,7 +24,7 @@

function initialiseCKEditor() {
var textareas = Array.prototype.slice.call(
document.querySelectorAll("textarea[data-type=ckeditortype]")
document.querySelectorAll("textarea[data-type=ckeditortype]"),
)
for (var i = 0; i < textareas.length; ++i) {
var t = textareas[i]
Expand Down
8 changes: 4 additions & 4 deletions ckeditor_demo/urls.py
@@ -1,16 +1,16 @@
from django.conf import settings
from django.conf.urls.static import static
from django.contrib import admin
from django.urls import include, re_path
from django.urls import include, path, re_path

from .demo_application import views


urlpatterns = (
[
re_path(r"^$", views.ckeditor_form_view, name="ckeditor-form"),
re_path(
r"^multiwidget/$",
path("", views.ckeditor_form_view, name="ckeditor-form"),
path(
"multiwidget/",
views.ckeditor_multi_widget_form_view,
name="ckeditor-multi-widget-form",
),
Expand Down

0 comments on commit 501fd12

Please sign in to comment.