-
Notifications
You must be signed in to change notification settings - Fork 196
/
.pre-commit-config.yaml
36 lines (36 loc) Β· 980 Bytes
/
.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
#For more info in pre-commit refer: https://pre-commit.com/#using-the-latest-version-for-a-repository and
# https://ljvmiranda921.github.io/notebook/2018/06/21/precommits-using-black-and-flake8/
repos:
- repo: https://github.com/psf/black
rev: 21.5b2
hooks:
- id: black
language_version: python3
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: trailing-whitespace
- id: check-yaml
- id: check-ast
- id: check-json
- id: check-merge-conflict
- id: detect-private-key
- repo: https://gitlab.com/PyCQA/flake8
rev: 3.9.2
hooks:
- id: flake8
exclude: __init__.py
- repo: https://github.com/PyCQA/isort
rev: 5.9.1
hooks:
- id: isort
args: ["--profile", "black"]
files: .
- repo: local
hooks:
- id: test
name: test
entry: make
args: ["test"]
language: system
pass_filenames: false