-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
executable file
·41 lines (41 loc) · 1.06 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: check-yaml
- id: check-json
- id: check-toml
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-docstring-first
# - id: check-merge-conflict
# - id: detect-private-key
- repo: local
hooks:
- id: isort
name: isort
entry: isort --settings-file pyproject.toml .
language: system
pass_filenames: false
- id: black
name: black
entry: black .
language: system
pass_filenames: false
- id: autoflake
name: autoflake
entry: autoflake
language: system
types: [ python ]
args: [ --in-place, --remove-all-unused-imports, --remove-duplicate-keys ]
files: ^cardiospike/,tests/
- id: flake8
name: flake8
entry: flake8
language: python
pass_filenames: false
- id: mypy
name: mypy
entry: mypy
language: system
pass_filenames: false