-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.pre-commit-config.yaml
46 lines (46 loc) · 1.23 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
fail_fast: true
repos:
- repo: https://github.com/MozillaSecurity/orion-ci
rev: v0.0.10
hooks:
- id: orion_ci
- repo: https://github.com/marco-c/taskcluster_yml_validator
rev: v0.0.12
hooks:
- id: taskcluster_yml
- repo: local
hooks:
- id: black
name: black
entry: poetry run black --check --diff
language: system
types: [ python ]
- id: flake8
name: flake8
entry: poetry run flake8
language: system
types: [ python ]
require_serial: true
- id: gitlint
name: gitlint
entry: poetry run gitlint
language: system
args: [--contrib=contrib-title-conventional-commits, --ignore=body-is-missing, --msg-filename]
stages: [commit-msg]
- id: mypy
name: mypy
entry: poetry run mypy src
language: system
pass_filenames: false
types: [ python ]
- id: pylint
name: pylint
entry: poetry run pylint -j 0 src
language: system
pass_filenames: false
types: [ python ]
- id: toml-sort
name: toml-sort
entry: poetry run toml-sort --check -a
files: "^pyproject\\.toml$"
language: system