-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
54 lines (54 loc) · 1.66 KB
/
.pre-commit-config.yaml
File metadata and controls
54 lines (54 loc) · 1.66 KB
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
# See https://pre-commit.com/ for documentation
# For installation:
# - install via
# pip install pre-commit
# - activate via
# pre-commit install
# Now the below hooks will run at any invocation of
# git commit
# To check all files in the repositoy run
# pre-commit run --all-files
repos:
- repo: meta # this repo checks pre-commit itself
hooks:
- id: check-hooks-apply # configured hooks apply to at least one file
- id: check-useless-excludes # ensures exclude directives apply to at least one file
- repo: https://gitlab.com/vojko.pribudic.foss/pre-commit-update
rev: v0.8.0
hooks:
- id: pre-commit-update
args: [--dry-run]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-added-large-files
# - id: check-ast
# - id: check-builtin-literals
- id: check-case-conflict
- id: check-executables-have-shebangs
# - id: check-json
- id: check-merge-conflict
- id: check-shebang-scripts-are-executable
# - id: check-toml
- id: check-xml
- id: check-yaml
# - id: debug-statements
- id: end-of-file-fixer
- id: mixed-line-ending
# - id: no-commit-to-branch
# - id: pretty-format-json
# args: ["--autofix"]
# - id: requirements-txt-fixer
# - id: sort-simple-yaml
- id: trailing-whitespace
types: [text]
- repo: https://github.com/koalaman/shellcheck-precommit
rev: v0.11.0
hooks:
- id: shellcheck
# args: ["--severity=warning"] # Optionally only show errors and warnings
- repo: https://github.com/codespell-project/codespell
rev: v2.4.1
hooks:
- id: codespell
args: ['--skip', '*.csv,*.txt']