-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
69 lines (69 loc) · 2 KB
/
.pre-commit-config.yaml
File metadata and controls
69 lines (69 loc) · 2 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
67
68
69
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
args: [--allow-multiple-documents]
- id: check-added-large-files
- id: check-toml
- id: check-merge-conflict
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.12.1
hooks:
# Run the linter.
- id: ruff-check
types_or: [ python, pyi ]
# Run the formatter.
- id: ruff-format
types_or: [ python, pyi ]
- repo: https://github.com/PyCQA/bandit
rev: 1.8.6
hooks:
- id: bandit
exclude: |
(?x)^(
acouchbase_analytics/tests/|
couchbase_analytics/tests/|
tests/|
couchbase_analytics_version.py
)
args:
[
--quiet
]
- repo: local
hooks:
- id: mypy
name: mypy
entry: "./run-mypy"
language: python
additional_dependencies:
- mypy~=1.16.1
- pytest~=8.3.5
- httpx~=0.28.1
- aiohttp~=3.11.10
- sniffio~=1.3.1
- anyio~=4.9.0
types:
- python
require_serial: true
verbose: true
- repo: https://github.com/astral-sh/uv-pre-commit
# uv version.
rev: 0.7.19
hooks:
# Compile requirements
- id: pip-compile
name: pip-compile requirements.in
args: [requirements.in, --python-version, '3.9', --universal, -o, requirements.txt]
- id: pip-compile
name: pip-compile requirements-dev.in
args: [requirements-dev.in, --python-version, '3.9', --universal, -o, requirements-dev.txt]
files: ^requirements-dev\.(in|txt)$
- id: pip-compile
name: pip-compile requirements-sphinx.in
args: [requirements-sphinx.in, --python-version, '3.9', --universal, -o, requirements-sphinx.txt]
files: ^requirements-sphinx\.(in|txt)$