-
Notifications
You must be signed in to change notification settings - Fork 46
/
.pre-commit-config.yaml
81 lines (71 loc) · 2.18 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
default_stages: [commit,push]
repos:
- repo: local
hooks:
- id: pyupgrade
name: pyupgrade
description: Upgrades syntax for modern versions of Python.
entry: pyupgrade
language: system
types: [python]
args: [--py310-plus]
- id: isort
name: isort
description: A Python utility that sorts imports alphabetically.
entry: isort
language: system
types: [python]
- id: autoflake
name: autoflake
description: Removes unused imports and unused variables from Python code.
entry: autoflake
language: system
types: [python]
- id: flake8
name: Flake8
description: Python Style Guide Enforcement.
entry: flake8 --config .flake8
language: system
types: [python]
- id: black
name: Black
description: Uncompromising Python code formatter.
entry: black
language: system
types: [python]
- id: trailing-whitespace
name: Trim Trailing Space
entry: trailing-whitespace-fixer
language: system
types: [file, text]
- id: end-of-file-fixer
name: Fix end of Files
description: Ensures that a file is either empty, or ends with one newline.
entry: end-of-file-fixer
language: system
types: [file, text]
- id: check-merge-conflict
name: Check for merge conflicts
description: Check for files that contain merge conflict strings.
entry: check-merge-conflict
language: system
types: [file, text]
- id: codespell
name: Check Spelling
description: Checks for common misspellings in text files.
entry: codespell --ignore-words .aspell.en.pws
language: system
types: [file, text]
- id: yamllint
name: yamllint
description: Lint YAML files.
entry: yamllint
language: system
types: [yaml]
- id: nixpkg-fmt
name: Format *.nix
description: Format nix files.
entry: nixpkgs-fmt
language: system
files: .*\.nix
types: [non-executable, file, text]