forked from truera/trulens
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
85 lines (85 loc) · 2.8 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
73
74
75
76
77
78
79
80
81
82
83
84
85
exclude: src\/(core|feedback|providers/.+)\/meta.yaml
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: trailing-whitespace
- id: check-added-large-files
exclude: src/dashboard/trulens/dashboard/.*/dist/.*
- id: check-yaml
exclude: meta.yaml
- id: destroyed-symlinks
- id: detect-private-key
- id: debug-statements
- id: check-merge-conflict
- id: end-of-file-fixer
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.5
hooks:
- id: ruff
types_or: [ python, pyi, jupyter ]
args: [ --fix ]
- id: ruff-format
types_or: [ python, pyi, jupyter ]
- repo: https://github.com/srstevenson/nb-clean
rev: 3.3.0
hooks:
- id: nb-clean
args: [--remove-empty-cells]
- repo: https://github.com/tox-dev/pyproject-fmt
rev: "2.0.4"
hooks:
- id: pyproject-fmt
# To enable after cleanup of imports:
#- repo: https://github.com/pycqa/flake8
# rev: 7.1.1
# hooks:
# - id: flake8
# additional_dependencies:
# - flake8-type-checking
# exclude: ^tests
# args: [--ignore, "E501,W503,E704,E203,E402,E731,E266"]
- repo: https://github.com/python-poetry/poetry
rev: 1.8.3
hooks:
- id: poetry-check
name: trulens-poetry-check
- id: poetry-check
name: trulens-core-poetry-check
args: [-C src/core]
- id: poetry-check
name: trulens-benchmark-poetry-check
args: [-C src/benchmark]
- id: poetry-check
name: trulens-feedback-poetry-check
args: [-C src/feedback]
- id: poetry-check
name: trulens-instrument-langchain-poetry-check
args: [-C src/instrument/langchain]
- id: poetry-check
name: trulens-instrument-llamaindex-poetry-check
args: [-C src/instrument/llamaindex]
- id: poetry-check
name: trulens-instrument-nemo-poetry-check
args: [-C src/instrument/nemo]
- id: poetry-check
name: trulens-providers-bedrock-poetry-check
args: [-C src/providers/bedrock]
- id: poetry-check
name: trulens-providers-cortex-poetry-check
args: [-C src/providers/cortex]
- id: poetry-check
name: trulens-providers-huggingface-poetry-check
args: [-C src/providers/huggingface]
- id: poetry-check
name: trulens-providers-langchain-poetry-check
args: [-C src/providers/langchain]
- id: poetry-check
name: trulens-providers-litellm-poetry-check
args: [-C src/providers/litellm]
- id: poetry-check
name: trulens-providers-openai-poetry-check
args: [-C src/providers/openai]
- id: poetry-check
name: trulens-connectors-snowflake-poetry-check
args: [-C src/connectors/snowflake]