-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
65 lines (63 loc) · 1.71 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
56
57
58
59
60
61
62
63
64
# https://pre-commit.com/#pre-commit-run
#exclude: '^(?:front/.*|back/api.*|back/schemas/.*)'
files: '^mte_website/.*py$' # https://regex101.com/
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- id: check-toml
- repo: https://github.com/PyCQA/isort
rev: 5.12.0
hooks:
- id: isort
name: isort
- repo: https://github.com/asottile/add-trailing-comma
rev: v2.4.0
hooks:
- id: add-trailing-comma
- repo: https://github.com/hhatto/autopep8
rev: main
hooks:
- id: autopep8
- repo: https://github.com/PyCQA/autoflake
rev: v2.0.2
hooks:
- id: autoflake
- repo: https://github.com/PyCQA/docformatter
rev: release/v1.6.0
hooks:
- id: docformatter
- repo: https://github.com/myint/unify
rev: v0.5
hooks:
- id: unify
- repo: https://github.com/psf/black
rev: 23.1.0
hooks:
- id: black
language_version: python3.10
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.1.1
hooks:
- id: mypy
- repo: local
hooks:
- id: flakeheaven
name: flakeheaven
description: flakeheaven
entry: flakeheaven lint
language: python
verbose: true
types: [ python ]
- id: django-check
name: django-check
descirption: run django manage.py check
entry: /Users/guntho/Library/Caches/pypoetry/virtualenvs/mte-django-2tBdu-fU-py3.10/bin/python mte_website/manage.py check
language: script
types: [ python ]
pass_filenames: false
always_run: true