-
Notifications
You must be signed in to change notification settings - Fork 49
/
.pre-commit-config.yaml
40 lines (35 loc) · 1.1 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: check-yaml
exclude: .*docker-compose.*?y(am|m)l
- id: end-of-file-fixer
files: .*\.py
- id: trailing-whitespace
files: .*\.py
- repo: local
hooks:
- id: make-dockerfile
name: Make Dockerfile.deploy
language: system
entry: bash -c '
.scripts/make_dockerfile.py &&
git add Dockerfile.deploy'
files: Dockerfile|.scripts/make_dockerfile.py
- id: black
name: black
description: "Black: The uncompromising Python code formatter"
entry: black
language: python
language_version: python3
require_serial: true
types: [ python ]
- id: poetry-export
name: Poetry export requirements
language: system
entry: bash -c '
poetry export --without-hashes -o requirements.txt &&
poetry export --without-hashes --dev -o requirements_dev.txt &&
git add requirements*.txt'
files: pyproject.toml|poetry.lock