-
Notifications
You must be signed in to change notification settings - Fork 6
/
.pre-commit-config.yaml
47 lines (44 loc) · 1.12 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
default_language_version:
python: python3.8
repos:
# Fixing Python Files
- repo: https://github.com/psf/black
rev: 22.1.0
hooks:
- id: black
- repo: https://github.com/PyCQA/isort
rev: 5.10.1
hooks:
- id: isort
args: [--profile, black]
- repo: https://github.com/MarcoGorelli/absolufy-imports
rev: v0.3.1
hooks:
- id: absolufy-imports
- repo: local
hooks:
- id: pylint
name: pylint
entry: env PYTHONPATH=. pylint
language: system
types: [python]
# Fixing YAML Files
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.1.0
hooks:
- id: check-yaml
- repo: https://github.com/jumanjihouse/pre-commit-hook-yamlfmt
rev: 0.1.0
hooks:
- id: yamlfmt
args: [--offset, '2', --mapping, '2', --sequence, '4', --implicit_start]
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.26.3
hooks:
- id: yamllint
args:
- --format
- parsable
- --strict
- --config-data
- '{extends: default, rules: {document-start: disable}}'