-
Notifications
You must be signed in to change notification settings - Fork 2
/
.pre-commit-config.yaml
44 lines (40 loc) · 1.16 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-added-large-files
args: ["--maxkb=500"]
- id: check-yaml
args: ["--allow-multiple-documents"]
exclude: ^helmchart/
- id: check-merge-conflict
- id: end-of-file-fixer
- repo: local
hooks:
- id: ruff
name: lint with ruff
language: system
entry: ruff check --force-exclude
types: [python]
require_serial: true
- id: ruff-format
name: format with ruff
language: system
entry: ruff format --force-exclude
types: [python]
require_serial: true
- id: import-contracts
name: Ensure import directionality
pass_filenames: false
language: system
entry: lint-imports
types: [python]
require_serial: false
# Type checking
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.4.1
hooks:
- id: mypy
files: 'src/.*\.py$'
additional_dependencies: [types-requests, types-redis, pydantic]
args: ["--ignore-missing-imports", "--no-strict-optional"]