forked from ROCm/rocm-docs-core
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
56 lines (53 loc) · 1.41 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
56
default_language_version:
python: python3.8
default_install_hook_types: [pre-commit, commit-msg]
default_stages: [commit]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-yaml
- id: check-json
- id: check-toml
- id: end-of-file-fixer
- id: file-contents-sorter
files: '^.wordlist.txt$'
args: [--unique]
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
- repo: local
hooks:
- id: mypy
name: mypy
entry: just mypy
types_or: [python, pyi]
language: system
exclude: ^docs/|^tests/(sites|templates)
- id: ruff
name: ruff
entry: just ruff
types_or: [python, pyi]
language: system
exclude: ^docs/|^tests/(sites|templates)
require_serial: true
- id: isort
name: isort
entry: just isort
types_or: [python, pyi]
language: system
- id: format
name: format
entry: just format
types_or: [python, pyi]
language: system
- id: commitizen
name: commitizen
entry: just _check-commit-mesg
stages: [commit-msg]
language: system
- id: pip-compile
name: pip-compile
entry: just lock-deps
files: ^pyproject.toml|requirements.txt$
pass_filenames: false
language: system