-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
62 lines (61 loc) · 1.92 KB
/
.pre-commit-config.yaml
File metadata and controls
62 lines (61 loc) · 1.92 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
# .pre-commit-config.yaml
#
# Pre-commit configuration for:
# - Local git hooks: `pre-commit install` & `pre-commit run --all-files`
# - pre-commit.ci bot: PR checks, auto hook updates, etc.
#
# Docs: https://pre-commit.ci/
#
ci:
autoupdate_schedule: monthly # Monthly bot PRs to update hook revs
submodules: true # Include git submodules in checks
autofix_commit_msg: |
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci # Custom commit message for bot autofixes
skip: [~draft, ~WIP] # Skip bot on PRs with these labels (regex prefix match)
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
# Basic file checks/fixes: whitespace, EOF, YAML/TOML validation, large files, security, symlinks
rev: v6.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-toml
- id: check-added-large-files
- id: check-ast
- id: check-docstring-first
- id: detect-private-key
- id: check-symlinks
- repo: https://github.com/astral-sh/ruff-pre-commit
# Python linter (ruff --fix) & formatter (ruff-format)
rev: v0.14.10
hooks:
- id: ruff
args: [ --fix ]
- id: ruff-format
- repo: https://github.com/hukkin/mdformat
# Markdown formatter (mdformat)
rev: 1.0.0
hooks:
- id: mdformat
- repo: https://github.com/abravalheri/validate-pyproject
# Validate pyproject.toml schema/content
rev: v0.23
hooks:
- id: validate-pyproject
- repo: https://github.com/tox-dev/pyproject-fmt
# Format pyproject.toml
rev: v2.9.0
hooks:
- id: pyproject-fmt
- repo: https://github.com/codespell-project/codespell
# Spell checker for code, comments, docs
rev: v2.4.1
hooks:
- id: codespell
- repo: https://github.com/pre-commit/mirrors-mypy
# Static type checker
rev: v1.14.1
hooks:
- id: mypy