2022-02-04 11:45:08 +00:00
|
|
|
default_language_version:
|
|
|
|
node: system
|
2022-02-11 14:57:57 +00:00
|
|
|
python: python3
|
2020-10-14 18:06:32 +00:00
|
|
|
repos:
|
2023-06-13 11:14:17 +00:00
|
|
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
2023-11-16 23:42:29 +00:00
|
|
|
rev: 'v0.1.5'
|
2020-10-14 18:06:32 +00:00
|
|
|
hooks:
|
2023-04-08 15:34:23 +00:00
|
|
|
- id: ruff
|
|
|
|
args: [--fix, --exit-non-zero-on-fix]
|
2023-11-16 23:42:29 +00:00
|
|
|
- id: ruff-format
|
2023-04-08 15:34:23 +00:00
|
|
|
|
2022-02-04 11:45:08 +00:00
|
|
|
- repo: https://github.com/pre-commit/mirrors-prettier
|
2024-02-19 18:38:20 +00:00
|
|
|
rev: v3.1.0
|
2022-02-04 11:45:08 +00:00
|
|
|
hooks:
|
|
|
|
- id: prettier
|
|
|
|
types_or: [css, scss, javascript, ts, tsx, json, yaml]
|
2023-08-03 12:36:19 +00:00
|
|
|
additional_dependencies:
|
|
|
|
# Keep in sync with package.json
|
2024-02-19 18:38:20 +00:00
|
|
|
- prettier@3.1.0
|
2022-02-10 16:01:32 +00:00
|
|
|
- repo: https://github.com/pre-commit/mirrors-eslint
|
2024-02-07 20:48:13 +00:00
|
|
|
rev: v8.56.0
|
2022-02-10 16:01:32 +00:00
|
|
|
hooks:
|
|
|
|
- id: eslint
|
|
|
|
types: [file]
|
|
|
|
files: \.(js|ts|tsx)$
|
|
|
|
args: [--report-unused-disable-directives]
|
|
|
|
additional_dependencies:
|
2023-08-03 12:36:19 +00:00
|
|
|
# Keep in sync with package.json
|
2024-02-07 20:48:13 +00:00
|
|
|
- eslint@8.56.0
|
2024-02-20 17:11:20 +00:00
|
|
|
- '@typescript-eslint/eslint-plugin@6.21.0'
|
|
|
|
- '@typescript-eslint/parser@6.21.0'
|
2022-02-10 16:01:32 +00:00
|
|
|
- '@wagtail/eslint-config-wagtail@0.4.0'
|
|
|
|
- repo: https://github.com/thibaudcolas/pre-commit-stylelint
|
2024-02-07 20:48:13 +00:00
|
|
|
rev: v15.11.0
|
2022-02-10 16:01:32 +00:00
|
|
|
hooks:
|
|
|
|
- id: stylelint
|
|
|
|
files: \.scss$
|
|
|
|
additional_dependencies:
|
2023-08-03 12:36:19 +00:00
|
|
|
# Keep in sync with package.json
|
2024-02-07 20:48:13 +00:00
|
|
|
- stylelint@15.11.0
|
|
|
|
- '@wagtail/stylelint-config-wagtail@0.8.0'
|
2023-02-14 19:22:39 +00:00
|
|
|
- repo: https://github.com/thibaudcolas/curlylint
|
|
|
|
rev: v0.13.1
|
|
|
|
hooks:
|
|
|
|
- id: curlylint
|
|
|
|
args: ['--parse-only']
|
2022-02-12 01:04:21 +00:00
|
|
|
- repo: https://github.com/rtts/djhtml
|
2023-09-20 22:56:27 +00:00
|
|
|
rev: 3.0.6
|
2022-02-12 01:04:21 +00:00
|
|
|
hooks:
|
|
|
|
- id: djhtml
|
2022-11-26 09:00:37 +00:00
|
|
|
- repo: https://github.com/returntocorp/semgrep
|
2023-09-20 22:56:27 +00:00
|
|
|
rev: v1.40.0
|
2022-11-26 09:00:37 +00:00
|
|
|
hooks:
|
|
|
|
- id: semgrep
|
2024-05-04 09:40:31 +00:00
|
|
|
files: \.py$
|
|
|
|
args: ['--config', '.semgrep.yml', '--disable-version-check', '--error']
|