-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
42 lines (41 loc) · 1.31 KB
/
.pre-commit-config.yaml
File metadata and controls
42 lines (41 loc) · 1.31 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
37
38
39
40
41
42
.pre-commit-config.yamlfail_fast: true
repos:
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.7.1
hooks:
- id: prettier
name: (prettier) Reformat YAML files with prettier
types: [yaml]
# Utilities to avoid common mistakes
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-added-large-files
name: Check for large files added to git
args: ["--maxkb=500"]
- id: check-merge-conflict
name: Check for files that contain merge conflict strings
- id: mixed-line-ending
name: Check for mixed line endings
- id: no-commit-to-branch
name: Prevent commits to protected branches
args: ["--branch", "main", "--branch", "master"]
- repo: https://github.com/srstevenson/nb-clean
rev: 3.2.0
hooks:
- id: nb-clean
args:
- --remove-empty-cells
- --preserve-cell-metadata
- tags
- --
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.1
hooks:
- id: ruff
types_or: [python, pyi, jupyter]
args: ["--config", "pyproject.toml", "--fix"]
exclude: "activelearning/notebooks/"
- id: ruff-format
types_or: [python, pyi, jupyter]
args: ["--config", "pyproject.toml"]