forked from ibis-project/ibis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
101 lines (101 loc) · 2.13 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
ci:
autofix_commit_msg: "style: auto fixes from pre-commit.ci hooks"
autofix_prs: false
autoupdate_commit_msg: "style: pre-commit.ci autoupdate"
skip:
- prettier
- shellcheck
- shfmt
- just
- nixpkgs-fmt
- nix-linter
default_stages:
- commit
repos:
- repo: https://github.com/pycqa/isort
rev: 5.10.1
hooks:
- id: isort
- repo: https://github.com/pycqa/flake8
rev: 4.0.1
hooks:
- id: flake8
- repo: https://github.com/psf/black
rev: 22.3.0
hooks:
- id: black
- repo: https://github.com/MarcoGorelli/absolufy-imports
rev: v0.3.1
hooks:
- id: absolufy-imports
- repo: https://github.com/asottile/pyupgrade
rev: v2.34.0
hooks:
- id: pyupgrade
exclude: setup.py
entry: pyupgrade --py38-plus
types:
- python
- repo: local
hooks:
- id: prettier
name: prettier
language: system
entry: prettier --write
types_or:
- json
- toml
- yaml
- markdown
- id: shellcheck
name: shellcheck
language: system
entry: shellcheck
files: \.sh$
types:
- shell
types_or:
- file
- sh
- ash
- bash
- bats
- dash
- ksh
- id: shfmt
name: shfmt
language: system
entry: shfmt -i 2 -sr -s
files: \.sh$
types:
- file
types_or:
- file
- id: just
name: just
language: system
entry: just --fmt --unstable --check
files: ^justfile$
pass_filenames: false
types:
- file
- id: nixpkgs-fmt
name: nixpkgs-fmt
language: system
entry: nixpkgs-fmt
exclude: nix/sources\.nix
files: \.nix$
types:
- file
types_or:
- file
- id: nix-linter
name: nix-linter
language: system
entry: nix-linter
exclude: nix/sources\.nix
files: \.nix$
types:
- file
types_or:
- file