-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
37 lines (32 loc) · 952 Bytes
/
.pre-commit-config.yaml
File metadata and controls
37 lines (32 loc) · 952 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
34
35
36
37
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.0.1 # Use the sha / tag you want to point at
hooks:
- id: prettier
types_or: [html]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.3.5 # Ruff version
hooks:
- id: ruff
types_or: [python, pyi, jupyter]
args: [--fix, --config, pyproject.toml]
- repo: https://github.com/pre-commit/mirrors-isort
rev: v5.10.1 # Use the latest isort version
hooks:
- id: isort # This will sort imports automatically
- repo: https://github.com/kynan/nbstripout
rev: 0.6.0
hooks:
- id: nbstripout
- repo: https://github.com/psf/black
rev: 23.3.0 # or the latest version you prefer
hooks:
- id: black
language_version: python3