-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
55 lines (49 loc) · 1.26 KB
/
.pre-commit-config.yaml
File metadata and controls
55 lines (49 loc) · 1.26 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
50
51
52
53
54
55
default_install_hook_types: [ pre-commit, pre-push ]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-merge-conflict
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-added-large-files
- id: check-toml
- id: check-yaml
- repo: local
hooks:
- id: ruff-format
name: Ruff (format)
entry: ruff format .
language: system
pass_filenames: false
types: [ python ]
stages: [ pre-commit ]
- id: ruff-check
name: Ruff (lint)
entry: ruff check .
language: system
pass_filenames: false
types: [ python ]
stages: [ pre-commit ]
- id: mypy
name: Mypy
entry: mypy .
language: system
pass_filenames: false
types: [ python ]
stages: [ pre-commit ]
- id: codeclone
name: CodeClone
entry: codeclone
language: system
pass_filenames: false
args: [ ".", "--ci" ]
types: [ python ]
stages: [ pre-commit ]
- id: pytest
name: Pytest
entry: pytest -q
language: system
pass_filenames: false
types: [ python ]
stages: [ pre-push ]