forked from the-crypt-keeper/tldw
-
Notifications
You must be signed in to change notification settings - Fork 65
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
43 lines (43 loc) · 1.45 KB
/
.pre-commit-config.yaml
File metadata and controls
43 lines (43 loc) · 1.45 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-yaml
- id: check-toml
- id: end-of-file-fixer
- id: trailing-whitespace
- id: mixed-line-ending
- id: debug-statements
- id: detect-private-key
- id: check-merge-conflict
- repo: local
hooks:
- id: guard-legacy-complete-nonempty-body
name: Guard non-empty legacy /complete bodies in tests
entry: python3 Helper_Scripts/checks/guard_no_nonempty_legacy_complete.py
language: system
pass_filenames: false
always_run: true
stages: [commit, push]
- id: guard-http-client-patching
name: Guard against raw requests/httpx/aiohttp patching in tests
entry: python3 Helper_Scripts/checks/guard_http_client_patching.py
language: system
pass_filenames: false
always_run: true
stages: [commit, push]
- id: python-syntax-check
name: Python syntax check (py_compile)
entry: python3 Helper_Scripts/checks/check_python_syntax.py
language: system
types: [python]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.9
hooks:
- id: ruff
files: ^tldw_Server_API/cli/wizard/|^tldw_Server_API/tests/wizard/
- repo: https://github.com/psf/black
rev: 24.8.0
hooks:
- id: black
files: ^tldw_Server_API/cli/wizard/|^tldw_Server_API/tests/wizard/