-
Notifications
You must be signed in to change notification settings - Fork 9
/
.pre-commit-config.yaml
43 lines (40 loc) · 1.08 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
repos:
- repo: local
hooks:
- id: run-tests
name: Run tests
entry: pipenv run test
language: system
pass_filenames: false
- id: commitlint
name: Commitlint
entry: python -m src.commitlint.cli --file
language: python
stages: [commit-msg]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-merge-conflict
- id: check-added-large-files
- id: check-yaml
- id: pretty-format-json
args: [--autofix]
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/akaihola/darker
rev: 1.7.1
hooks:
- id: darker
args:
- --isort
- --flynt
- --lint=flake8 --max-line-length=88 --ignore=E203,W503
- --lint=mypy --strict
- --lint=pylint --max-line-length=88 --disable=W0511
additional_dependencies:
- black==23.3.0
- flake8==5.0.4
- flynt==0.77
- isort==5.12.0
- mypy==1.8.0
- pylint==2.17.4