-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
42 lines (40 loc) · 1.24 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-ast
- id: mixed-line-ending
- id: trailing-whitespace
- id: check-case-conflict
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.3
hooks:
- id: ruff
types_or: [python, pyi, jupyter]
args: [--fix, --show-fixes, --exit-non-zero-on-fix]
- id: ruff-format
- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
- id: isort
args: [--profile, black]
- repo: https://github.com/ambv/black
rev: 24.10.0
hooks:
- id: black
language_version: python3.12
- repo: https://github.com/doublify/pre-commit-rust
rev: v1.0
hooks:
- id: fmt
- id: cargo-check
### FIXME
# - repo: https://github.com/ddkasa/check-mkdocs.git
# rev: 65e819a4c62ee22c38f244b51b63f2f9b89a66d0
# hooks:
# - id: check-mkdocs
# name: check-mkdocs
# args: ["--config", "mkdocs.yml"] # Optional, mkdocs.yml is the default
# # If you have additional plugins or libraries that are not included in
# # check-mkdocs, add them here
# additional_dependencies: ['mkdocs-material', 'mkdocs-jupyter', 'mkdocstrings-python']