-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
.pre-commit-config.yaml
72 lines (72 loc) · 2.05 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
default_language_version:
python: python3.10
fail_fast: true
exclude: 'docs/.*|cli/.*|.venv/.*|.vscode/.*|serverless.yml|poetry.lock|Makefile|Dockerfile*|.env*'
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: trailing-whitespace
stages: [commit]
- id: end-of-file-fixer
stages: [commit]
- id: check-yaml
stages: [commit]
exclude: mkdocs.yml
- id: sort-simple-yaml
stages: [commit]
- id: check-added-large-files
stages: [commit]
- id: check-ast
stages: [commit]
- id: check-json
stages: [commit]
- id: pretty-format-json
stages: [commit]
args: [--autofix, --indent, "2"]
- id: check-toml
stages: [commit]
- id: debug-statements
stages: [commit]
- id: mixed-line-ending
stages: [commit]
- id: requirements-txt-fixer
stages: [commit]
- id: sort-simple-yaml
stages: [commit]
- id: detect-private-key
stages: [commit]
- id: no-commit-to-branch
stages: [commit]
args: [--branch, staging, --branch, main, --branch, master]
- id: check-case-conflict
stages: [commit]
- id: check-merge-conflict
stages: [commit]
- repo: https://github.com/commitizen-tools/commitizen
rev: v3.15.0
hooks:
- id: commitizen
stages: [commit-msg]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.2.2
hooks:
- id: ruff # linter without fixer
stages: [ push ]
types_or: [ python3, python ]
exclude: '^poc/'
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.8.0
hooks:
- id: mypy
stages: [push]
exclude: '^tests/|^poc/'
args: [--ignore-missing-imports, --warn-unused-configs, --check-untyped-defs]
additional_dependencies:
- pydantic
- pydantic-settings
- types-toml
- types-pytz
- fastapi
- passlib
- supabase-py