-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
48 lines (48 loc) · 1.5 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
# 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.12
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
args: [--maxkb=100]
- id: check-toml
name: Check TOML
- id: check-yaml
name: Check YAML
- 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/python-jsonschema/check-jsonschema
rev: 0.28.4
hooks:
- id: check-github-actions
name: Validate GitHub Actions
args: ["--verbose"]
- repo: https://github.com/codespell-project/codespell
rev: v2.3.0
hooks:
- id: codespell
name: Codespell Spell Checker
additional_dependencies:
- tomli
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.7
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]