-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
33 lines (30 loc) · 923 Bytes
/
Copy path.pre-commit-config.yaml
File metadata and controls
33 lines (30 loc) · 923 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
33
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
# - repo: https://github.com/pre-commit/mirrors-mypy
# rev: v1.13.0
# hooks:
# - id: mypy
# args: [ --config-file, pyproject.toml]
# pass_filenames: true
# additional_dependencies: [toml]
- repo: local
hooks:
- id: normalize-notebooks
name: normalize-notebooks
entry: python scripts/normalize_notebooks.py
language: python
types: [jupyter]
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.8.4
hooks:
- id: ruff
args: [ --config, pyproject.toml, --fix, --exit-non-zero-on-fix ]
types_or: [ python, jupyter ]
- id: ruff-format
args: [ --config, pyproject.toml ]
types_or: [ python, jupyter ]