-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
39 lines (39 loc) · 1.16 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
repos:
- repo: local
hooks:
- id: mypy
name: mypy
entry: "./tools/run-mypy"
language: system
# trigger for commits changing Python files
types: [python]
# use require_serial so that script
# is only called once per commit
require_serial: true
# print the number of files as a sanity-check
- id: ruff
name: ruff
entry: "./tools/run-ruff"
language: system
# trigger for commits changing Python files
types: [python]
# use require_serial so that script is only called once per commit
require_serial: true
# print the number of files as a sanity-check
verbose: true
- id: black
name: black
entry: "./tools/run-black"
language: system
# trigger for commits changing Python files
types: [python]
# use require_serial so that script is only called once per commit
require_serial: true
# print the number of files as a sanity-check
verbose: true
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
types: [file, python]