-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
56 lines (50 loc) · 1.58 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-merge-conflict
- repo: local
hooks:
- id: black
name: black
entry: poetry -C todo-api run black
language: python
require_serial: true
args: [--config=todo-api/pyproject.toml]
types_or: [python, pyi]
- id: flake8
name: flake8
entry: poetry -C todo-api run flake8
language: python
require_serial: true
args: [--config=todo-api/.flake8]
types: [python]
- id: isort
name: isort
entry: poetry -C todo-api run isort
stages: [commit, merge-commit, push, manual]
language: python
require_serial: true
args: ["--filter-files"]
types_or: [cython, pyi, python]
- id: mypy-src
name: mypy-src
entry: sh -c 'source load-env.sh && cd todo-api/src && poetry run mypy . --config-file=../pyproject.toml'
language: system
require_serial: true
types_or: [python, pyi]
pass_filenames: false
- id: mypy-tests
name: mypy-tests
entry: sh -c 'source load-env.sh && cd todo-api/tests && poetry run mypy . --config-file=../pyproject.toml --explicit-package-bases'
language: system
require_serial: true
types_or: [python, pyi]
pass_filenames: false
- id: terraform_fmt
name: terraform_fmt
entry: terraform fmt
language: system
types: [terraform]
args: ["-recursive"]
files: ^deployment/aws/