-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
55 lines (55 loc) · 1.7 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
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
exclude: ^(\.git|\.hg|\.mypy_cache|\.nox|\.tox|\.venv|_build|buck-out|build|dist|alembic)/
default_language_version:
python: python3.11
default_stages: [pre-commit, pre-push]
repos:
# https://github.com/pre-commit/pre-commit-hooks#pre-commit-hooks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-added-large-files
name: Check added large files
- id: check-toml
name: Check TOML
- id: check-yaml
name: Check YAML
args:
- --unsafe
- id: check-json
name: Check JSON
- id: end-of-file-fixer
name: End of file fixer
- id: trailing-whitespace
name: Trailing whitespace
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.4
hooks:
- id: ruff
name: Ruff Linter
types_or: [python, pyi, jupyter]
args: [--config=pyproject.toml]
- id: ruff-format
name: Ruff Formatter
types_or: [python, pyi, jupyter]
args: [--config=pyproject.toml]
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.28.3
hooks:
- id: check-github-actions
name: Validate GitHub Actions
args: ["--verbose"]
# Uses [mvdan/sh](https://github.com/mvdan/sh)
- repo: https://github.com/scop/pre-commit-shfmt
rev: v3.8.0-1
hooks:
- id: shfmt
name: Shfmt Formatter for Shell Scripts
args: ["-l", "-w", "scripts/"]
- repo: https://github.com/codespell-project/codespell
rev: v2.2.6
hooks:
- id: codespell
additional_dependencies:
- tomli