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
|
|
|
|
args: ['--target-version', 'py37']
|
2020-10-14 20:06:32 +02:00
|
|
|
- repo: https://github.com/timothycrosley/isort
|
|
|
|
# isort config is in setup.cfg
|
|
|
|
rev: 5.6.4
|
|
|
|
hooks:
|
|
|
|
- id: isort
|
|
|
|
- repo: https://gitlab.com/pycqa/flake8
|
|
|
|
# flake8 config is in setup.cfg
|
|
|
|
rev: 3.8.4
|
|
|
|
hooks:
|
|
|
|
- id: flake8
|
2022-02-11 15:57:57 +01:00
|
|
|
additional_dependencies:
|
|
|
|
- flake8-comprehensions
|
|
|
|
- flake8-assertive
|
2022-02-04 12:45:08 +01:00
|
|
|
- repo: https://github.com/pre-commit/mirrors-prettier
|
|
|
|
rev: v2.5.1
|
|
|
|
hooks:
|
|
|
|
- id: prettier
|
|
|
|
types_or: [css, scss, javascript, ts, tsx, json, yaml]
|
2022-02-10 17:01:32 +01:00
|
|
|
- repo: https://github.com/pre-commit/mirrors-eslint
|
|
|
|
rev: v8.8.0
|
|
|
|
hooks:
|
|
|
|
- id: eslint
|
|
|
|
types: [file]
|
|
|
|
files: \.(js|ts|tsx)$
|
|
|
|
args: [--report-unused-disable-directives]
|
|
|
|
additional_dependencies:
|
|
|
|
- eslint@8.8.0
|
|
|
|
- '@typescript-eslint/eslint-plugin@5.10.1'
|
|
|
|
- '@typescript-eslint/parser@5.10.1'
|
|
|
|
- '@wagtail/eslint-config-wagtail@0.4.0'
|
|
|
|
- repo: https://github.com/thibaudcolas/pre-commit-stylelint
|
|
|
|
rev: v14.2.0
|
|
|
|
hooks:
|
|
|
|
- id: stylelint
|
|
|
|
files: \.scss$
|
|
|
|
additional_dependencies:
|
|
|
|
- stylelint@14.2.0
|
|
|
|
- '@wagtail/stylelint-config-wagtail@0.3.2'
|
2022-02-12 02:04:21 +01:00
|
|
|
- repo: https://github.com/rtts/djhtml
|
|
|
|
rev: v1.4.13
|
|
|
|
hooks:
|
|
|
|
- id: djhtml
|
2022-11-26 10:00:37 +01:00
|
|
|
- repo: https://github.com/returntocorp/semgrep
|
|
|
|
rev: v0.117.0
|
|
|
|
hooks:
|
|
|
|
- id: semgrep
|
|
|
|
args: ['--config', '.semgrep.yml', '--error']
|