-
Notifications
You must be signed in to change notification settings - Fork 4
/
.pre-commit-config.yaml
59 lines (57 loc) · 1.47 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
default_stages: [commit, push]
repos:
- repo: local
hooks:
- id: format-black
name: Run Black Formatter
entry: make format
always_run: true
language: system
verbose: true
pass_filenames: false
- id: pytest
name: Unit Tests
entry: make test
always_run: true
language: system
verbose: true
pass_filenames: false
# - id: poetry-lock
# name: Lock Poetry File
# entry: poetry lock
# language: system
# verbose: true
# pass_filenames: false
# - id: static-type-check
# name: Type Checking
# entry: make typecheck
# language: system
# verbose: true
# pass_filenames: false
##################
# Push Only
##################
- id: poetry-export
name: Export Requirements.txt
entry: make generate-requirements
language: system
verbose: true
pass_filenames: false
stages: [push]
- repo: 'https://github.com/pre-commit/pre-commit-hooks'
rev: v3.2.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
# - id: check-added-large-files
# - repo: 'https://github.com/python-poetry/poetry'
# rev: 1.1.14
# hooks:
# - id: poetry-check
# - id: poetry-lock
# - id: poetry-export
# args:
# - '-o'
# - requirements.txt
# - '--without-hashes'