-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
60 lines (51 loc) · 1.36 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
60 lines (51 loc) · 1.36 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
exclude: "^docs/|/migrations/|builddocs/"
default_stages: [ pre-commit, pre-push ]
default_language_version:
python: python3
repos:
- repo: https://github.com/PyCQA/doc8
rev: v2.0.0
hooks:
- id: doc8
args: []
- repo: https://github.com/Yelp/detect-secrets
rev: v1.5.0
hooks:
- id: detect-secrets
args: ['--baseline', '.secrets.baseline']
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: trailing-whitespace
exclude: "data/"
- id: end-of-file-fixer
- id: check-yaml
- id: check-toml
- id: check-added-large-files
args: ['--maxkb=1024']
- id: debug-statements
- id: check-merge-conflict
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.14.5
hooks:
- id: ruff-check
name: lint
files: .
args: [ "--config", "pyproject.toml", "--fix" ]
- id: ruff-format
name: format
files: .
args: [ "--config", "pyproject.toml" ]
- repo: https://github.com/jsh9/pydoclint
rev: 0.8.1
hooks:
- id: pydoclint
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.48.0
hooks:
- id: markdownlint
# - repo: https://github.com/asottile/pyupgrade
# rev: v3.21.1
# hooks:
# - id: pyupgrade
# args: [ --py39-plus ]