-
-
Notifications
You must be signed in to change notification settings - Fork 120
/
.pre-commit-config.yaml
71 lines (70 loc) · 1.87 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
65
66
67
68
69
70
71
default_language_version:
python: python3.8
fail_fast: false
ci:
skip: [readmegen, makerequirements]
autoupdate_schedule: quarterly
exclude: '^.+\.pot?$'
repos:
- repo: local
hooks:
- id: readmegen
name: readmegen
description: >-
Script to automatically generate readme.md
entry: python ./.utils/utils.py makereadme
language: python
additional_dependencies:
- babel~=2.9.0
- tabulate~=0.8.9
- click
always_run: true
pass_filenames: false
require_serial: true
verbose: true
- id: requirementsgen
name: requirementsgen
description: >-
Script to automatically generate requirements.txt
entry: python ./.utils/utils.py makerequirements
language: python
additional_dependencies:
- babel~=2.9.0
- tabulate~=0.8.9
- click
always_run: true
pass_filenames: false
require_serial: true
verbose: true
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.1.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-builtin-literals
- id: check-ast
- id: check-docstring-first
- id: check-json
- id: detect-private-key
- id: check-toml
- id: pretty-format-json
args:
- "--autofix"
- "--indent=4"
- "--no-sort-keys"
- id: requirements-txt-fixer
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
- repo: https://github.com/psf/black
rev: '22.3.0'
hooks:
- id: black
- repo: https://github.com/Pierre-Sassoulas/black-disable-checker
rev: '1.0.1'
hooks:
- id: black-disable-checker
- repo: https://github.com/pycqa/isort
rev: '5.10.1'
hooks:
- id: isort