-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.pre-commit-config.yaml
40 lines (38 loc) · 1.07 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
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: local
hooks:
- id: flake8
name: flake8
language: system
entry: flake8
types: [python]
stages: [commit]
- id: black
language: python
language_version: python3.7
name: black
entry: black
types: [python]
stages: [commit]
- id: mypy
language: python
language_version: python3.7
name: mypy
entry: mypy
types: [python]
- id: update_requirements
name: update requirements
language: python
language_version: python3.7
entry: poetry export --without-hashes -f requirements.txt --output requirements.txt
pass_filenames: false
stages: [commit]
- id: update_dev_requirements
name: update development requirements
language: python
language_version: python3.7
entry: poetry export --dev --without-hashes -f requirements.txt --output dev_requirements.txt
pass_filenames: false
stages: [commit]