-
Notifications
You must be signed in to change notification settings - Fork 239
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
50 lines (43 loc) · 1.25 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
50 lines (43 loc) · 1.25 KB
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
---
# Install both the pre-commit and commit-msg hook types so that the
# conventional-commit check below is enforced on every commit message.
default_install_hook_types: [pre-commit, commit-msg]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
- id: check-ast
- id: check-case-conflict
- id: check-yaml
- repo: https://github.com/pycqa/flake8
rev: 7.1.1
hooks:
- id: flake8
additional_dependencies: [
'flake8-blind-except',
'flake8-bugbear',
'flake8-comprehensions',
'flake8-implicit-str-concat',
]
- repo: https://github.com/PyCQA/isort
rev: 5.13.2
hooks:
- id: isort
pass_filenames: true
args: ["--profile", "black"]
- repo: https://github.com/psf/black
rev: 24.10.0
hooks:
- id: black
- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.10.0
hooks:
- id: python-use-type-annotations
- id: python-no-eval
# Enforce Conventional Commits on commit messages (resolves #3).
- repo: https://github.com/compilerla/conventional-pre-commit
rev: v3.6.0
hooks:
- id: conventional-pre-commit
stages: [commit-msg]