-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
49 lines (49 loc) · 1.51 KB
/
.pre-commit-config.yaml
File metadata and controls
49 lines (49 loc) · 1.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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-added-large-files
args:
# the unit here is acutally KiB (1024 bytes)
- '--maxkb=51200' # match github max of 50MiB
- repo: https://github.com/hukkin/mdformat
rev: 0.7.22 # Use the ref you want to point at
hooks:
- id: mdformat
name: mdformat-lint
args: [--wrap=80, --number]
types: [markdown]
- repo: https://github.com/hukkin/mdformat
rev: 0.7.22 # Use the ref you want to point at
hooks:
- id: mdformat
name: mdformat-format
args: [--wrap=80, --number, --check]
types: [markdown]
- repo: local
hooks:
- id: ruff-lint
name: ruff-lint
entry: poetry run ruff check --config pyproject.toml --fix --force-exclude
require_serial: true
language: system
types_or: [python, pyi, jupyter]
- id: sphinx-lint
name: sphinx-lint
entry: poetry run sphinx-lint --enable all --disable leaked-markup --jobs 1 --max-line-length 120 -i docs/_implementations -i docs/nrtk_jatic/_implementations docs
types: [rst]
language: system
- id: ruff-format
name: ruff-format
entry: poetry run ruff format --config pyproject.toml --force-exclude
require_serial: true
language: system
types_or: [python, pyi, jupyter]
- id: pyright
name: pyright
require_serial: true
language: system
entry: poetry run pyright
types: [file, python]