-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
63 lines (60 loc) · 1.61 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
57
58
59
60
61
62
63
# .pre-commit-config.yaml
repos:
#- repo: local
# hooks:
# - id: format
# name: Format Code
# entry: make format
# language: system
# types: [ python ]
# - id: lint
# name: Run Linting
# entry: make lint
# language: system
# types: [python]
# - id: test
# name: Run Tests
# entry: make test
# language: system
# always_run: true
# pass_filenames: false # Disable passing filenames
# - id: docs
# name: Generate docs
# entry: make docs
# language: system
# always_run: true
# files: README.ipynb
# pass_filenames: false # Disable passing filenames
# - id: clean
# name: Clean temp files and jupyter files
# entry: make clean
# language: system
# always_run: true
# pass_filenames: false # Disable passing filenames
- repo: local
hooks:
- id: format
name: format
entry: make format
language: system
types: [ python ]
pass_filenames: false
- id: lint
name: lint
entry: make lint-fix
language: system
types: [python]
pass_filenames: false
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.1.0 # this is optional, use `pre-commit autoupdate` to get the latest rev!
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/python-poetry/poetry
rev: '2.0.1' # add version here
hooks:
- id: poetry-check
- id: poetry-lock
- id: poetry-install
stages: [post-checkout]