-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
46 lines (46 loc) · 1.2 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
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
minimum_pre_commit_version: 2.15.0
repos:
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
name: isort (python)
args: ["--profile", "black", "--filter-files"]
- repo: https://github.com/psf/black
rev: 22.12.0
hooks:
- id: black
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-added-large-files
- id: check-json
- id: check-toml
- id: check-yaml
- id: detect-private-key
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: local
hooks:
- id: test
name: unit tests
description: Run unit tests.
entry: poetry run pytest
language: system
types: [python]
pass_filenames: false
- id: pylint
name: pylint
entry: poetry run pylint
args: [
"-rn", # Only display messages
]
language: system
types: [python]
- repo: https://github.com/commitizen-tools/commitizen
rev: v2.40.0
hooks:
- id: commitizen
stages: [commit-msg]