-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
49 lines (49 loc) · 1.18 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
fail_fast: false
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: no-commit-to-branch
- id: check-merge-conflict
- id: check-symlinks
- id: mixed-line-ending
args: ['--fix=no']
- id: check-ast
- id: check-builtin-literals
- id: check-case-conflict
- id: check-docstring-first
- repo: https://github.com/asottile/pyupgrade
rev: v2.37.3
hooks:
- id: pyupgrade
args: [--py39-plus]
- repo: local
hooks:
- id: black
name: black
entry: black
language: python
files: '.*\.py$'
- id: flake8
name: flake8
entry: flake8
language: python
pass_filenames: false
- id: mypy
name: mypy
entry: mypy
language: python
pass_filenames: false
files: '.*\.py$'
- id: pip-compile
name: pip-compile
entry: pip-compile
language: python
pass_filenames: false
files: 'setup\.py|requirements\.txt'
- id: pip-compile-dev-requirements
name: pip-compile-dev-requirements
entry: pip-compile dev-requirements.in
language: python
pass_filenames: false
files: '(dev-)?requirements\.(in|txt)'