-
Notifications
You must be signed in to change notification settings - Fork 9
/
.pre-commit-config.yaml
45 lines (37 loc) · 1.15 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
default_language_version:
python: "python3.10"
repos:
- repo: "https://github.com/pre-commit/pre-commit-hooks"
rev: "v4.4.0"
hooks:
- id: "check-added-large-files"
- id: "check-vcs-permalinks"
- id: "end-of-file-fixer"
- repo: "https://github.com/charliermarsh/ruff-pre-commit"
rev: "v0.0.269"
hooks:
- id: "ruff"
# NOTE: "--exit-non-zero-on-fix" is important for CI to function
# correctly!
args: ["--fix", "--exit-non-zero-on-fix"]
- repo: "https://github.com/psf/black"
rev: "23.3.0"
hooks:
- id: "black"
- repo: "https://github.com/jendrikseipp/vulture"
rev: "v2.7"
hooks:
- id: "vulture"
# Commented because it requires Docker, which is not available in all CI
# runners. Works on GitHub actions but not CircleCI.
# - repo: "https://github.com/koalaman/shellcheck-precommit"
# rev: "v0.9.0"
# hooks:
# - id: "shellcheck"
# # args: ["--severity=warning"] # Optionally only show errors and warnings
#
- repo: "https://github.com/shellcheck-py/shellcheck-py"
rev: "v0.9.0.5"
hooks:
- id: "shellcheck"
args: ["-x"]