-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.pre-commit-config.yaml
54 lines (48 loc) · 1.24 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
---
repos:
- repo: meta
hooks:
- id: check-hooks-apply
- id: check-useless-excludes
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
- id: mixed-line-ending
args: [--fix=lf]
- id: check-added-large-files
- id: check-merge-conflict
- id: check-docstring-first
- id: check-toml
- id: check-yaml
- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.10.0
hooks:
- id: python-check-blanket-noqa
- id: python-check-blanket-type-ignore
- id: python-check-mock-methods
- repo: local
hooks:
- id: pyproject.toml
name: validate pyproject.toml
language: system
entry: poetry check
files: 'pyproject\.toml'
pass_filenames: false
- id: isort
name: isort
language: system
entry: poetry run isort
types: [python]
- id: black
name: black
language: system
entry: poetry run black
types: [python]
- id: flake8
name: flake8
language: system
entry: poetry run flake8
types: [python]