2022-02-04 12:45:08 +01:00
|
|
|
default_language_version:
|
|
|
|
node: system
|
2022-02-11 15:57:57 +01:00
|
|
|
python: python3
|
2020-10-14 20:06:32 +02:00
|
|
|
repos:
|
2022-02-11 16:16:57 +01:00
|
|
|
- repo: https://github.com/psf/black
|
2022-03-29 18:44:14 +02:00
|
|
|
rev: 22.3.0
|
2022-02-11 16:16:57 +01:00
|
|
|
hooks:
|
|
|
|
- id: black
|
|
|
|
language_version: python3
|
2023-07-13 21:02:20 +02:00
|
|
|
args: ['--target-version', 'py38']
|
2023-04-08 17:34:23 +02:00
|
|
|
|
2023-06-13 13:14:17 +02:00
|
|
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
2023-09-21 00:56:27 +02:00
|
|
|
rev: 'v0.0.290'
|
2020-10-14 20:06:32 +02:00
|
|
|
hooks:
|
2023-04-08 17:34:23 +02:00
|
|
|
- id: ruff
|
|
|
|
args: [--fix, --exit-non-zero-on-fix]
|
|
|
|
|
2022-02-04 12:45:08 +01:00
|
|
|
- repo: https://github.com/pre-commit/mirrors-prettier
|
2023-09-21 00:56:27 +02:00
|
|
|
rev: v3.0.3
|
2022-02-04 12:45:08 +01:00
|
|
|
hooks:
|
|
|
|
- id: prettier
|
|
|
|
types_or: [css, scss, javascript, ts, tsx, json, yaml]
|
2023-08-03 14:36:19 +02:00
|
|
|
additional_dependencies:
|
|
|
|
# Keep in sync with package.json
|
|
|
|
- prettier@3.0.1
|
2022-02-10 17:01:32 +01:00
|
|
|
- repo: https://github.com/pre-commit/mirrors-eslint
|
2023-09-21 00:56:27 +02:00
|
|
|
rev: v8.49.0
|
2022-02-10 17:01:32 +01:00
|
|
|
hooks:
|
|
|
|
- id: eslint
|
|
|
|
types: [file]
|
|
|
|
files: \.(js|ts|tsx)$
|
|
|
|
args: [--report-unused-disable-directives]
|
|
|
|
additional_dependencies:
|
2023-08-03 14:36:19 +02:00
|
|
|
# Keep in sync with package.json
|
|
|
|
- eslint@8.46
|
|
|
|
- '@typescript-eslint/eslint-plugin@6.2.1'
|
|
|
|
- '@typescript-eslint/parser@6.2.1'
|
2022-02-10 17:01:32 +01:00
|
|
|
- '@wagtail/eslint-config-wagtail@0.4.0'
|
|
|
|
- repo: https://github.com/thibaudcolas/pre-commit-stylelint
|
2023-09-21 00:56:27 +02:00
|
|
|
rev: v15.10.3
|
2022-02-10 17:01:32 +01:00
|
|
|
hooks:
|
|
|
|
- id: stylelint
|
|
|
|
files: \.scss$
|
|
|
|
additional_dependencies:
|
2023-08-03 14:36:19 +02:00
|
|
|
# Keep in sync with package.json
|
2022-02-10 17:01:32 +01:00
|
|
|
- stylelint@14.2.0
|
2023-08-03 14:36:19 +02:00
|
|
|
- '@wagtail/stylelint-config-wagtail@0.5.0'
|
2023-02-14 20:22:39 +01:00
|
|
|
- repo: https://github.com/thibaudcolas/curlylint
|
|
|
|
rev: v0.13.1
|
|
|
|
hooks:
|
|
|
|
- id: curlylint
|
|
|
|
args: ['--parse-only']
|
2022-02-12 02:04:21 +01:00
|
|
|
- repo: https://github.com/rtts/djhtml
|
2023-09-21 00:56:27 +02:00
|
|
|
rev: 3.0.6
|
2022-02-12 02:04:21 +01:00
|
|
|
hooks:
|
|
|
|
- id: djhtml
|
2022-11-26 10:00:37 +01:00
|
|
|
- repo: https://github.com/returntocorp/semgrep
|
2023-09-21 00:56:27 +02:00
|
|
|
rev: v1.40.0
|
2022-11-26 10:00:37 +01:00
|
|
|
hooks:
|
|
|
|
- id: semgrep
|
|
|
|
args: ['--config', '.semgrep.yml', '--error']
|