forked from phenom4n4n/phen-cogs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
52 lines (48 loc) · 1.33 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
default_language_version:
python: python3.8
fail_fast: false
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-builtin-literals
- id: check-ast
- id: check-json
- id: detect-private-key
# - id: pretty-format-json
# args: [--autofix, --indent 4]
- id: requirements-txt-fixer
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
- repo: https://github.com/psf/black
rev: '23.3.0'
hooks:
- id: black
- repo: https://github.com/pycqa/isort
rev: '5.12.0'
hooks:
- id: isort
- repo: https://github.com/PyCQA/autoflake.git
rev: v2.0.2
hooks:
- id: autoflake
args: ['--recursive', '--in-place', '--remove-all-unused-imports', '--ignore-init-module-imports']
- 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