forked from ctorney/matplotlib-backend-sixel
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
43 lines (43 loc) · 1.13 KB
/
.pre-commit-config.yaml
File metadata and controls
43 lines (43 loc) · 1.13 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
repos:
- repo: https://github.com/codespell-project/codespell
rev: v2.4.1
hooks:
- id: codespell
additional_dependencies:
- tomli # if one configures using pyproject.toml
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: end-of-file-fixer
- id: mixed-line-ending
- id: trailing-whitespace
- id: check-toml
- repo: https://github.com/hukkin/mdformat
rev: 0.7.22
hooks:
- id: mdformat
additional_dependencies:
- mdformat-gfm # use github flavor markdown
- mdformat-black # format python code block with black
- mdformat-beautysh # format bash code block with beautysh
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
rev: v2.14.0
hooks:
- id: pretty-format-toml
args: [--autofix]
- id: pretty-format-yaml
args: [--autofix]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.11.4
hooks:
# Run linter
- id: ruff
types_or: [python, pyi]
args: [--fix]
# Run formatter
- id: ruff-format
types_or: [python, pyi]
- repo: https://github.com/astral-sh/uv-pre-commit
rev: 0.6.12
hooks:
- id: uv-lock