-
Notifications
You must be signed in to change notification settings - Fork 198
/
Copy path.pre-commit-config.yaml
50 lines (50 loc) · 1.39 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
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: |
(?x)^(
src/dashboard/trulens/dashboard/.*/dist/.*|
poetry.lock
)$
- 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