-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
53 lines (52 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
43
44
45
46
47
48
49
50
51
52
53
default_install_hook_types:
# Mandatory to install both pre-commit and pre-push hooks (see https://pre-commit.com/#top_level-default_install_hook_types)
# Add new hook types here to ensure automatic installation when running `pre-commit install`
- pre-commit
- pre-push
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-json
- id: check-added-large-files
- repo: local
hooks:
- id: format-fix
name: Formatting (ruff)
entry: ruff format
language: system
types: [python]
stages: [commit]
- id: lint-check
name: Linting (ruff)
entry: ruff check
language: system
types: [python]
stages: [commit]
- id: type-check
name: Type checking (mypy)
entry: make type-check
pass_filenames: false
language: system
types: [python]
stages: [commit]
- id: test
name: Unit testing (pytest)
entry: make test
pass_filenames: false
language: system
types: [python]
stages: [push]
- id: dvc-pre-push
name: DVC pre-push
entry: dvc
args:
- git-hook
- pre-push
require_serial: true
verbose: true
language: system
stages: [push]