forked from flaree/flare-cogs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
61 lines (59 loc) · 1.55 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
default_language_version:
python: python3.11
fail_fast: false
ci:
skip: [readmegen]
autoupdate_schedule: quarterly
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.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/humitos/mirrors-autoflake.git
rev: v1.1
hooks:
- id: autoflake
args: ['--in-place', '--remove-unused-variable']
- repo: https://github.com/psf/black
rev: '23.12.1'
hooks:
- id: black
- repo: https://github.com/Pierre-Sassoulas/black-disable-checker
rev: 'v1.1.3'
hooks:
- id: black-disable-checker
- repo: https://github.com/pycqa/isort
rev: '5.13.2'
hooks:
- id: isort
- repo: local
hooks:
- id: readmegen
name: readmegen
description: >-
Script to automatically generate readme.md
entry: python ./.utils/utils.py
language: python
additional_dependencies:
- babel~=2.9.0
- tabulate~=0.8.9
always_run: true
pass_filenames: false
require_serial: true
verbose: true