-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
48 lines (47 loc) · 1.25 KB
/
.pre-commit-config.yaml
File metadata and controls
48 lines (47 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
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: end-of-file-fixer
- id: check-toml
- id: check-added-large-files
- repo: local # We'll be using the tools already installed locally as dev dependencies.
hooks:
- id: ruff
name: ruff
entry: ruff check
language: system
types: [python]
stages: [pre-commit]
- id: pyright
name: pyright
entry: pyright
language: system
types: [python]
stages: [pre-commit]
- id: conventional-pre-commit
name: conventional-pre-commit
entry: conventional-pre-commit --verbose
language: system
stages: [commit-msg]
- id: detect-secrets
name: detect-secrets
entry: detect-secrets-hook
language: system
stages: [pre-commit]
- id: codespell
name: codespell
entry: codespell
language: python
types: [text]
stages: [pre-commit]
- id: unittest
name: unittest
entry: bash -c '$(find . -path "*env*/bin/python" -print -quit) -m unittest discover -t . -s tests'
pass_filenames: false
language: system
types: [python]