-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
67 lines (58 loc) · 1.4 KB
/
.pre-commit-config.yaml
File metadata and controls
67 lines (58 loc) · 1.4 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
exclude: '.git|.tox'
default_stages: [commit]
fail_fast: true
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-ast
- id: check-case-conflict
- id: check-docstring-first
- id: check-json
- id: check-merge-conflict
- id: check-toml
- id: check-xml
- id: check-yaml
- id: debug-statements
- id: detect-private-key
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: local
hooks:
- id: codespell
name: codespell
entry: poetry run codespell
language: system
types_or: [python, rst, markdown]
files: ^src/
- id: isort
name: isort
entry: poetry run isort
language: system
files: ^src/
- id: pyupgrade
name: pyupgrade
entry: poetry run pyupgrade
language: system
args: [--py311-plus]
files: ^src/
- id: yesqa
name: yesqa
entry: poetry run yesqa
language: system
files: ^src/
- id: black
name: black
entry: poetry run black
language: system
files: ^src/
- id: ruff
name: ruff
entry: poetry run ruff
language: system
files: ^src/
- id: flake8
name: flake8
entry: poetry run flake8
language: system
files: ^src/