-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.pre-commit-config.yaml
64 lines (58 loc) · 1.69 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
minimum_pre_commit_version: 3.7.1
default_language_version:
python: python3.10
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: trailing-whitespace
- id: check-merge-conflict
- id: check-case-conflict
- id: check-json
- id: check-toml
- id: check-yaml
- id: check-ast
- id: check-docstring-first
- id: debug-statements
- repo: https://github.com/psf/black
rev: 24.4.2
hooks:
- id: black
language_version: python3.10
files: folioblog
exclude: /migrations/
- repo: https://github.com/rtts/djhtml
rev: 3.0.6
hooks:
- id: djhtml
files: folioblog
- repo: https://github.com/klen/pylama
rev: 8.4.1
hooks:
- id: pylama
files: folioblog
additional_dependencies:
- toml
- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
- id: isort
files: folioblog
exclude: /migrations/
- repo: https://github.com/python-poetry/poetry
rev: 1.8.3
hooks:
- id: poetry-check
- id: poetry-lock
- id: poetry-export
name: poetry-export-prod
args: [ "-f", "requirements.txt", "--with", "prod", "-o", "requirements/prod.txt" ]
verbose: true
- id: poetry-export
name: poetry-export-test
args: [ "-f", "requirements.txt", "--with", "test", "-o", "requirements/test.txt" ]
verbose: true
- id: poetry-export
name: poetry-export-dev
args: [ "-f", "requirements.txt", "--with", "test,dev", "-o", "requirements/dev.txt" ]
verbose: true