-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
.pre-commit-config.yaml
47 lines (42 loc) · 1.17 KB
/
.pre-commit-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
repos:
# Note for all linters: do not forget to update pyproject.toml when updating version.
- repo: https://github.com/python-poetry/poetry
rev: 1.8.4
hooks:
- id: poetry-lock
args: ["--check"]
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 24.8.0
hooks:
- id: black
language_version: python3
- repo: https://github.com/pycqa/flake8
rev: 7.1.1
hooks:
- id: flake8
- repo: https://github.com/timothycrosley/isort
rev: 5.13.2
hooks:
- id: isort
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.11.1
hooks:
- id: mypy
additional_dependencies: [types-all-v2]
- repo: local
hooks:
- id: node-checks
name: node-checks
# we use docker compose
entry: make
args: [check_front]
language: system
types: [ts]
require_serial: false
pass_filenames: false
# Check translations
- id: check-translations
name: "Check if translations files in 'frontend/xliff' need to be updated"
entry: make check_translations
types_or: [ts,javascript,pofile]
language: system