-
Notifications
You must be signed in to change notification settings - Fork 728
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
32 lines (30 loc) · 914 Bytes
/
.pre-commit-config.yaml
File metadata and controls
32 lines (30 loc) · 914 Bytes
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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-added-large-files
args: ["--maxkb=1000"]
- id: check-case-conflict
- id: check-toml
- id: check-yaml
- id: debug-statements
- id: end-of-file-fixer
- id: forbid-new-submodules
- id: trailing-whitespace
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.8.2
hooks:
- id: ruff-format
exclude: notebooks/advanced_techniques/evaluating_information_retrival_techniques_mongondb_langchain.ipynb
- id: ruff
args: ["--fix", "--show-fixes"]
- repo: local
hooks:
- id: jupyter-widget-state
name: Add widget state to Jupyter notebooks
description: Ensures Jupyter notebooks have widget state for GitHub rendering
entry: .github/hooks/jupyter-widget-state.sh
language: script
files: \.ipynb$
stages: [pre-commit]