-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
46 lines (41 loc) · 1.1 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
# File introduces automated checks triggered on git events
# to enable run `pip install pre-commit && pre-commit install`
default_install_hook_types:
- pre-commit
- commit-msg
# - prepare-commit-msg # allow together with gira
default_stages:
- pre-commit
repos:
- repo: local
hooks:
- id: ruff
name: Ruff
entry: ruff check --fix
language: system
types: [python]
- id: ruff-format
name: Ruff format
entry: ruff format
language: system
types: [python]
- id: mypy
name: mypy
entry: mypy --exclude tests --ignore-missing-imports --follow-imports=skip --pretty
language: system
types: [python]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: trailing-whitespace
- id: check-docstring-first
- id: check-added-large-files
- id: check-yaml
- id: debug-statements
- id: check-merge-conflict
- id: end-of-file-fixer
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
rev: v9.13.0
hooks:
- id: commitlint
stages: [commit-msg]