-
-
Notifications
You must be signed in to change notification settings - Fork 21
/
.pre-commit-config.yaml
59 lines (53 loc) · 1.53 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
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/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: sort-simple-yaml
files: ^(\.github/workflows/.*\.ya?ml|\.readthedocs.ya?ml)$
- id: trailing-whitespace
- repo: https://github.com/pappasam/toml-sort
rev: v0.23.1
hooks:
- id: toml-sort-fix
files: ^(.*\.toml)$
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.9
hooks:
- id: ruff
args: [ --exit-non-zero-on-fix, --fix ]
files: ^(asyncpraw/.*.py)$
- repo: https://github.com/psf/black
hooks:
- id: black
rev: 24.10.0
- repo: https://github.com/LilSpazJoekp/docstrfmt
hooks:
- id: docstrfmt
rev: v1.9.0