forked from ibis-project/ibis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
107 lines (107 loc) · 2.33 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
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/psf/black
rev: 22.8.0
hooks:
- id: black
exclude: _py310\.py$
- repo: https://github.com/pycqa/flake8
rev: 5.0.4
hooks:
- id: flake8
exclude: _py310\.py$
- repo: https://github.com/pycqa/docformatter
rev: v1.5.0
hooks:
- id: docformatter
- repo: https://github.com/MarcoGorelli/absolufy-imports
rev: v0.3.1
hooks:
- id: absolufy-imports
- repo: https://github.com/asottile/pyupgrade
rev: v2.38.2
hooks:
- id: pyupgrade
exclude: setup.py
entry: pyupgrade --py38-plus --keep-runtime-typing
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 --check="no-FreeLetInFunc"
exclude: nix/sources\.nix
files: \.nix$
types:
- file
types_or:
- file