-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
66 lines (61 loc) · 1.69 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
66 lines (61 loc) · 1.69 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-toml
- id: check-merge-conflict
- id: debug-statements
- id: check-ast
- id: check-added-large-files
args: ['--maxkb=500']
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.9.10
hooks:
- id: ruff
args: [--fix]
- id: ruff-format
- repo: https://github.com/RobertCraigie/pyright-python
rev: v1.1.408
hooks:
- id: pyright
additional_dependencies:
- "python-dotenv"
- "Pillow"
- "beautifulsoup4"
- "readability-lxml"
- "requests"
- "numpy"
- "pypdf"
- "matplotlib"
- "PyJWT"
- "selenium"
- "tigeropen"
- "pyobjc-framework-CoreText; sys_platform == 'darwin'"
- "pyobjc-framework-UserNotifications; sys_platform == 'darwin'"
- "dnspython"
- "piexif"
- "speedtest-cli"
- "wandb"
- repo: https://github.com/PyCQA/bandit
rev: 1.9.4
hooks:
- id: bandit
args: ["-r", "ww/", "-c", "pyproject.toml"]
additional_dependencies: ["bandit[toml]"]
pass_filenames: false
- repo: https://github.com/Yelp/detect-secrets
rev: v1.5.0
hooks:
- id: detect-secrets
args: ['--baseline', '.secrets.baseline']
- repo: local
hooks:
- id: unit-tests
name: Unit tests
entry: uv run python -m pytest tests/ -x -q --tb=short
language: system
pass_filenames: false
always_run: true