-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
36 lines (34 loc) · 1.02 KB
/
.pre-commit-config.yaml
File metadata and controls
36 lines (34 loc) · 1.02 KB
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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: trailing-whitespace
exclude: '^(exercises/|solutions/)'
- id: end-of-file-fixer
exclude: '^(exercises/|solutions/)'
- id: check-yaml
- id: check-added-large-files
- id: check-merge-conflict
- id: debug-statements
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.12.7
hooks:
- id: ruff
args: [--fix]
exclude: '^(exercises/|solutions/)'
- id: ruff-format
exclude: '^(exercises/|solutions/)'
- repo: local
hooks:
- id: add-colab-buttons
name: Add Google Colab buttons to notebooks
entry: python3 scripts/add_colab_buttons.py
language: system
files: ^(exercises|solutions)/.*\.ipynb$
pass_filenames: false
- id: sync-notebooks
name: Sync notebooks
entry: python3 scripts/sync_notebooks.py
language: system
always_run: true
pass_filenames: false