-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
44 lines (37 loc) · 1.18 KB
/
.pre-commit-config.yaml
File metadata and controls
44 lines (37 loc) · 1.18 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
43
44
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-added-large-files
additional_dependencies: [--isolated]
args: ["--maxkb=2000"]
# Add exceptions here, as a regex
exclude: ""
- id: check-json
additional_dependencies: [--isolated]
- id: check-toml
additional_dependencies: [--isolated]
- id: check-yaml
additional_dependencies: [--isolated]
- id: detect-private-key
additional_dependencies: [--isolated]
- id: end-of-file-fixer
additional_dependencies: [--isolated]
- id: trailing-whitespace
additional_dependencies: [--isolated]
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.14.6
hooks:
# Run the linter.
- id: ruff-check
args: [--fix]
types_or: [pyi, python, jupyter]
# Ignore global python configuration for private registry and install hooks from public index
# Add for each hook
# Reference: https://github.com/pre-commit/pre-commit/issues/1454#issuecomment-1816328894
additional_dependencies: [--isolated]
# Run the formatter.
- id: ruff-format
types_or: [pyi, python, jupyter]
additional_dependencies: [--isolated]