-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
53 lines (46 loc) · 1.25 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.0
hooks:
# blocks files larger than 500 KB
- id: check-added-large-files
# blocks files with leftover merge conflict markers
- id: check-merge-conflict
# - id: no-commit-to-branch
# name: Block commits to main branch
- repo: https://github.com/AleksaC/hadolint-py
rev: v2.12.0
hooks:
- id: hadolint
name: Lint Dockerfile with hadolint
args:
# Avoid use of cache directory with pip
- --ignore
- DL3042
- repo: local
hooks:
- id: ruff-lint
name: Lint files with ruff
args: [check, --fix, --show-fixes]
entry: ruff
language: system
types: [python]
- id: ruff-format
name: Format files with ruff
args: [format]
entry: ruff
language: system
types: [python]
- id: eslint
name: Lint files with ESLint
args: [eslint, --fix]
entry: npx
files: \.(js|ts)$
language: system
- id: prettier
name: Format files with prettier
args: [prettier, -l, -u, -w]
entry: npx
exclude: \.py$
language: system
types: [text]