-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
86 lines (86 loc) · 2.51 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
86 lines (86 loc) · 2.51 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: "v6.0.0"
hooks:
- id: check-added-large-files
args: ["--maxkb=1200"]
- id: check-case-conflict
- id: check-merge-conflict
- id: check-symlinks
- id: check-yaml
args: []
- id: debug-statements
- id: end-of-file-fixer
exclude: 'changelog\.d/.*|CHANGLEOG\.md'
- id: mixed-line-ending
- id: name-tests-test
args: ["--pytest-test-first"]
exclude: "tests/custom"
- id: requirements-txt-fixer
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
exclude: 'changelog\.d/.*|CHANGELOG\.md'
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.14.14
hooks:
- id: ruff-format
stages: [pre-commit]
args: ["--config", "pyproject.toml"]
types_or: [python, jupyter]
- id: ruff-check
stages: [pre-commit]
args: ["--fix", "--config", "pyproject.toml"]
types_or: [python]
- repo: https://github.com/codespell-project/codespell
rev: v2.4.1
hooks:
- id: codespell
args: [--skip="*.ipynb"]
exclude: '^tests/fixtures/'
additional_dependencies:
- tomli
- repo: https://github.com/rbubley/mirrors-prettier
rev: "v3.8.1"
hooks:
- id: prettier
types_or: [javascript, css, json, html]
# - repo: local
# hooks:
# - id: ty
# name: ty
# entry: pixi run ty check
# language: system
# files: \.(py)$
- repo: https://github.com/tombi-toml/tombi-pre-commit
rev: v0.7.14
hooks:
- id: tombi-format
- id: tombi-lint
- repo: https://github.com/rhysd/actionlint
rev: v1.7.10
hooks:
- id: actionlint
# - repo: https://github.com/DavidAnson/markdownlint-cli2
# rev: v0.20.0
# hooks:
# - id: markdownlint-cli2
# name: markdownlint
# args: [--config, .github/.markdownlint-cli2.yaml]
- repo: https://github.com/executablebooks/mdformat
rev: 0.7.22
hooks:
- id: mdformat
args: [--wrap=120]
exclude: 'docs/nbs/example\.md|docs/api\.md|docs/api/'
additional_dependencies:
- mdformat-gfm
- mdformat-gfm-alerts
- mdformat-tables
- mdformat-frontmatter
- mdformat-footnote
# - repo: https://github.com/econchick/interrogate
# rev: 1.7.0
# hooks:
# - id: interrogate
# args: [--config=pyproject.toml]
# pass_filenames: true