forked from tslmy/llamacron
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.pre-commit-config.yaml
58 lines (58 loc) · 1.73 KB
/
.pre-commit-config.yaml
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# Apply to all files without committing:
# pre-commit run --all-files
# Update this file:
# pre-commit autoupdate
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-ast
- id: check-byte-order-marker
- id: check-case-conflict
- id: check-docstring-first
- id: check-executables-have-shebangs
- id: check-json
- id: check-yaml
- id: debug-statements
- id: detect-private-key
- id: end-of-file-fixer
# Exclude generated files.
exclude: '^diagram.svg$'
- id: trailing-whitespace
- id: mixed-line-ending
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.13.0
hooks:
- id: mypy
additional_dependencies:
- types-requests
args: [--ignore-missing-imports]
- repo: https://github.com/asottile/pyupgrade
rev: v3.19.0
hooks:
- id: pyupgrade
args: [--py36-plus]
- repo: https://github.com/asottile/blacken-docs
rev: 1.19.1
hooks:
- id: blacken-docs
additional_dependencies: [black]
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.7.3
hooks:
- id: ruff
name: "Sort imports with Ruff"
args: [ --select, I, --fix ]
- id: ruff
name: "Lint code with Ruff"
args: [ --fix ]
- id: ruff-format
name: "Format code with Ruff"
# I'm seeing "Library not loaded: /opt/homebrew/opt/icu4c/lib/libicui18n.74.dylib" error.
# Seems that this hook relies on version 74 of icu4c, but other software I use relies on a newer version (76).
# TODO: Re-enable this hook when the issue is resolved.
#- repo: https://github.com/standard/standard
# rev: v17.1.2
# hooks:
# - id: standard