-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
83 lines (83 loc) · 2.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
---
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-added-large-files
- id: check-case-conflict
- id: check-executables-have-shebangs
- id: check-json
- id: detect-private-key
- id: fix-byte-order-marker
- id: mixed-line-ending
- id: file-contents-sorter
files: requirements.txt|requirements-dev.txt
# ------------------------- ops ------------------------
# - repo: https://github.com/jumanjihouse/pre-commit-hooks
# rev: 3.0.0
# hooks:
# - id: shellcheck
# args:
# - -e
# - SC2086
# - id: shfmt
- repo: https://github.com/jumanjihouse/pre-commit-hook-yamlfmt
rev: 0.2.1
hooks:
- id: yamlfmt
args:
- --mapping
- "2"
- --sequence
- "4"
- --offset
- "2"
- --width
- "150"
- --preserve-quotes
- repo: https://github.com/AleksaC/hadolint-py
rev: v1.19.0
hooks:
- id: hadolint
args:
- --ignore
- DL3025
- --ignore
- DL3018
- --ignore
- DL3027
# ------------------------- python ------------------------
- repo: https://github.com/psf/black
rev: 22.3.0
hooks:
- id: black
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.0.245
hooks:
- id: ruff
args: ["--fix", "--ignore=E402,E501"]
exclude: ^migrations/
- repo: https://github.com/asottile/reorder_python_imports
rev: v2.6.0
hooks:
- id: reorder-python-imports
# - repo: local
# hooks:
# - id: mypy
# name: mypy
# entry: "bash ./tests/run_mypy.sh"
# language: system
# types: [python]
# pass_filenames: false
# require_serial: true
# - repo: local
# hooks:
# - id: pytest
# name: pytest
# entry: pytest tests/tests.py
# language: system
# types: [python]
# pass_filenames: false
# require_serial: true