-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
56 lines (54 loc) · 1.41 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
48
49
50
51
52
53
54
55
56
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-added-large-files
- id: check-merge-conflict
- id: debug-statements
- id: name-tests-test
- id: requirements-txt-fixer
- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.10.0
hooks:
- id: python-check-blanket-noqa
- repo: local
hooks:
- id: black
name: Reformat text with black
entry: black
language: system
types: [python]
- id: docformatter
name: Format docstrings with docformatter
entry: docformatter
language: system
types: [python]
args: [--in-place, --recursive, --black]
- id: mypy
name: Check Types with Mypy
entry: mypy
language: system
types: [python]
args: [--ignore-missing-imports]
- id: ruff
name: Lint with Ruff
entry: ruff
language: system
types: [python]
- id: coverage
name: Run pytest
entry: coverage
language: system
types: [python]
pass_filenames: false
args: [run, -m, pytest]
- id: coverage
name: Check test coverage
entry: coverage
language: system
types: [python]
args: [report]
always_run: true
verbose: true