-
Notifications
You must be signed in to change notification settings - Fork 49
/
.pre-commit-config.yaml
48 lines (47 loc) · 1.36 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
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
# Global hooks (these can be configured with global pyproject.toml)
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: 'v0.3.4'
hooks:
- id: ruff-format
files: |
(?x)(
^projects/fal/src/|
^projects/fal/tests/|
^projects/fal_client/
)
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
files: |
(?x)(
^projects/fal/src/|
^projects/fal/tests/|
^projects/fal_client/
)
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: check-added-large-files
- id: check-merge-conflict
- id: check-vcs-permalinks
- id: debug-statements
exclude: ^projects/fal/src/fal/cli/debug.py
# Monorepo Hooks (e.g. they need to be project specific)
- repo: https://github.com/pre-commit/mirrors-mypy
rev: "v1.3.0"
hooks:
- id: mypy
args:
[
"--ignore-missing-imports",
"--no-warn-no-return",
"--check-untyped-defs",
]
additional_dependencies:
- types-protobuf
- types-requests
- types-redis
- types-pyyaml
files: "^projects/fal/src/"