Forráskód Böngészése

Update linter versions in package.json, setup.py and pre-commit hooks

Matt Westcott 1 éve
szülő
commit
689c7dcbd8
5 módosított fájl, 399 hozzáadás és 176 törlés
  1. 6 6
      .pre-commit-config.yaml
  2. 389 166
      package-lock.json
  3. 1 1
      package.json
  4. 2 2
      setup.py
  5. 1 1
      wagtail/test/utils/wagtail_factories/blocks.py

+ 6 - 6
.pre-commit-config.yaml

@@ -10,13 +10,13 @@ repos:
         args: ['--target-version', 'py38']
 
   - repo: https://github.com/astral-sh/ruff-pre-commit
-    rev: 'v0.0.272'
+    rev: 'v0.0.290'
     hooks:
       - id: ruff
         args: [--fix, --exit-non-zero-on-fix]
 
   - repo: https://github.com/pre-commit/mirrors-prettier
-    rev: v3.0.1
+    rev: v3.0.3
     hooks:
       - id: prettier
         types_or: [css, scss, javascript, ts, tsx, json, yaml]
@@ -24,7 +24,7 @@ repos:
           # Keep in sync with package.json
           - prettier@3.0.1
   - repo: https://github.com/pre-commit/mirrors-eslint
-    rev: v8.8.0
+    rev: v8.49.0
     hooks:
       - id: eslint
         types: [file]
@@ -37,7 +37,7 @@ repos:
           - '@typescript-eslint/parser@6.2.1'
           - '@wagtail/eslint-config-wagtail@0.4.0'
   - repo: https://github.com/thibaudcolas/pre-commit-stylelint
-    rev: v14.2.0
+    rev: v15.10.3
     hooks:
       - id: stylelint
         files: \.scss$
@@ -51,11 +51,11 @@ repos:
       - id: curlylint
         args: ['--parse-only']
   - repo: https://github.com/rtts/djhtml
-    rev: v1.5.2
+    rev: 3.0.6
     hooks:
       - id: djhtml
   - repo: https://github.com/returntocorp/semgrep
-    rev: v1.3.0
+    rev: v1.40.0
     hooks:
       - id: semgrep
         args: ['--config', '.semgrep.yml', '--error']

A különbségek nem kerülnek megjelenítésre, a fájl túl nagy
+ 389 - 166
package-lock.json


+ 1 - 1
package.json

@@ -94,7 +94,7 @@
     "sass": "^1.45.1",
     "sass-loader": "^12.4.0",
     "storybook-django": "^0.5.1",
-    "stylelint": "^14.2.0",
+    "stylelint": "^15.10.0",
     "tailwindcss": "^3.1.5",
     "tailwindcss-vanilla-rtl": "^0.2.0",
     "ts-jest": "^29.1.0",

+ 2 - 2
setup.py

@@ -53,9 +53,9 @@ testing_extras = [
     "coverage>=3.7.0",
     "black==22.3.0",
     "doc8==0.8.1",
-    "ruff==0.0.272",
+    "ruff==0.0.290",
     # For enforcing string formatting mechanism in source files
-    "semgrep==1.3.0",
+    "semgrep==1.40.0",
     # For templates linting
     "curlylint==0.13.1",
     # For template indenting

+ 1 - 1
wagtail/test/utils/wagtail_factories/blocks.py

@@ -149,7 +149,7 @@ class StructBlockFactory(factory.Factory):
     def _construct_struct_value(cls, block_class, params):
         return blocks.StructValue(
             block_class(),
-            [(name, value) for name, value in params.items()],
+            list(params.items()),
         )
 
     @classmethod

Nem az összes módosított fájl került megjelenítésre, mert túl sok fájl változott