-
-
Notifications
You must be signed in to change notification settings - Fork 469
/
Copy path.pre-commit-config.yaml
60 lines (54 loc) · 1.58 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
50
51
52
53
54
55
56
57
58
59
60
repos:
- repo: local
hooks:
- id: static_word_checks
args:
- '--replace'
entry: python -m tools.static_word_checks
language: system
name: Static Word Checks
pass_filenames: false
types: [ python ]
- id: check_documentation
entry: python -m tools.check_documentation
language: system
name: Check Documentation
pass_filenames: false
types: [ python ]
- repo: https://github.com/astral-sh/ruff-pre-commit
hooks:
- id: ruff
args: [ --exit-non-zero-on-fix, --fix ]
files: ^(praw/.*.py)$
rev: v0.9.6
- repo: https://github.com/LilSpazJoekp/docstrfmt
hooks:
- id: docstrfmt
rev: v1.9.0
- repo: https://github.com/MarcoGorelli/auto-walrus
hooks:
- id: auto-walrus
rev: 0.3.4
- repo: https://github.com/pappasam/toml-sort
hooks:
- id: toml-sort-fix
files: ^(.*\.toml)$
rev: v0.24.2
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-added-large-files
- id: check-executables-have-shebangs
- id: check-shebang-scripts-are-executable
- id: check-toml
- id: check-yaml
- id: end-of-file-fixer
- id: mixed-line-ending
args: [ --fix=no ]
- id: name-tests-test
args: [ --pytest-test-first ]
files: ^tests/integration/.*\.py|tests/unit/.*\.py$
- id: no-commit-to-branch
- id: sort-simple-yaml
files: ^(\.github/workflows/.*\.ya?ml|\.readthedocs.ya?ml)$
- id: trailing-whitespace