-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.pre-commit-config.yaml
55 lines (50 loc) · 1.39 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: check-yaml
- id: check-json
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-added-large-files
- id: check-merge-conflict
- id: detect-private-key
- repo: local
hooks:
- id: black
files: demandtools|tests
name: black
entry: poetry run black --config pyproject.toml
types: [ python ]
language: system
- repo: local
hooks:
- id: darglint
files: demandtools|tests
name: darglint
entry: poetry run darglint --verbosity 2 --docstring-style numpy
types: [ python ]
language: system
- repo: local
hooks:
- id: flake8
files: demandtools|tests
name: flake8
entry: poetry run flake8
types: [ python ]
language: system
- repo: local
hooks:
- id: isort
name: isort
entry: poetry run isort --settings-path pyproject.toml
types: [ python ]
language: system
- repo: local
hooks:
- id: autoflake
name: autoflake
entry: autoflake -i --remove-all-unused-imports --ignore-init-module-imports
language: python
types: [ python ]
require_serial: true