forked from ibis-project/ibis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
114 lines (114 loc) · 2.65 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
ci:
autofix_commit_msg: "style: auto fixes from pre-commit.ci hooks"
autofix_prs: false
autoupdate_commit_msg: "chore(deps): pre-commit.ci autoupdate"
skip:
- actionlint
- prettier
- shellcheck
- shfmt
- just
- nixpkgs-fmt
- statix
default_stages:
- commit
repos:
- repo: https://github.com/rhysd/actionlint
rev: v1.6.23
hooks:
- id: actionlint
- repo: https://github.com/psf/black
rev: 23.1.0
hooks:
- id: black
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.0.249
hooks:
- id: ruff
args: ["--show-source", "--fix"]
- repo: https://github.com/adrienverge/yamllint
rev: v1.29.0
hooks:
- id: yamllint
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-added-large-files
- id: check-case-conflict
- id: check-executables-have-shebangs
- id: check-merge-conflict
- id: check-shebang-scripts-are-executable
- id: check-vcs-permalinks
- id: destroyed-symlinks
- id: detect-aws-credentials
args: ["--allow-missing-credentials"]
- id: detect-private-key
- id: end-of-file-fixer
exclude: .+/snapshots/.+
- id: fix-byte-order-marker
- id: mixed-line-ending
- id: trailing-whitespace
args: ["--markdown-linebreak-ext=md"]
exclude: .+/snapshots/.+
- repo: meta
hooks:
- id: check-hooks-apply
- id: check-useless-excludes
- repo: local
hooks:
- id: prettier
name: prettier
language: system
entry: prettier
args: ["--write"]
types_or:
- json
- toml
- yaml
- markdown
- id: shellcheck
name: shellcheck
language: system
entry: shellcheck
types_or:
- sh
- shell
- ash
- bash
- bats
- dash
- ksh
- id: shfmt
name: shfmt
language: system
entry: shfmt
args: ["-i", "2", "-sr", "-s"]
types_or:
- sh
- shell
- ash
- bash
- bats
- dash
- ksh
- id: just
name: just
language: system
entry: just
args: ["--fmt", "--unstable"]
files: ^justfile$
pass_filenames: false
- id: nixpkgs-fmt
name: nixpkgs-fmt
language: system
entry: nixpkgs-fmt
types:
- nix
- id: statix
name: statix
language: system
entry: statix
args: ["fix"]
pass_filenames: false
types:
- nix