-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
62 lines (62 loc) · 1.74 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
62 lines (62 loc) · 1.74 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
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
default_install_hook_types:
- pre-commit
- post-commit
- post-merge
default_stages: [pre-commit]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-merge-conflict
- id: check-case-conflict
- id: debug-statements
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
args: [ --unsafe ]
- id: check-json
- id: check-added-large-files
args: [ '--maxkb=1024' ]
- id: detect-private-key
- id: mixed-line-ending
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.16.9
hooks:
- id: ruff
name: Lint with ruff
args: [ --fix ]
- id: ruff-format
name: Format with ruff
- repo: https://github.com/crate-ci/typos
rev: v1.50.3
hooks:
- id: typos
- repo: https://github.com/astral-sh/uv-pre-commit
rev: 0.12.19
hooks:
- id: uv-lock
name: Update uv lockfile
- id: uv-sync
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v2.3.1
hooks:
- id: mypy
name: Static type checking with mypy
# The hook runs in its own virtualenv, so it needs every package the
# checked code imports, including the optional backends.
additional_dependencies:
- fastapi>=0.110.0
- starlette>=0.36.0
- pydantic>=2.0.0
- pytest>=8.0.0
- pytest-asyncio>=0.23.0
- redis>=5.3.0
- types-redis
- orjson
- types-orjson
- pymemcache>=4.0.0
- PyJWT>=2.9.0
args: [--strict]
exclude: ^(docs/|scripts/)