-
Notifications
You must be signed in to change notification settings - Fork 139
/
.pre-commit-config.yaml
47 lines (46 loc) · 1.04 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:
# Flutter
- repo: https://github.com/dluksza/flutter-analyze-pre-commit
rev: "4afcaa82fc368d40d486256bf4edba329bf667bb"
hooks:
- id: dart-format
files: \.dart$
require_serial: true
- id: flutter-analyze
require_serial: true
- repo: local
hooks:
- id: arb-reformatter
name: reformat-strings
files: \.arb$
language: script
entry: arb_reformatter.py
require_serial: true
- id: update-android-strings
name: update-android-strings
files: \.arb$
language: script
entry: update_android_strings.py
require_serial: true
# Python
- repo: local
hooks:
- id: mypy
name: mypy
files: helper/
language: script
entry: run-mypy.sh
require_serial: true
- repo: https://github.com/PyCQA/flake8
rev: 6.1.0
hooks:
- id: flake8
- repo: https://github.com/psf/black
rev: 23.11.0
hooks:
- id: black
- repo: https://github.com/PyCQA/bandit
rev: 1.7.5
hooks:
- id: bandit
files: helper/ # keep in sync with .bandit file