forked from Pylons/pyramid_openapi3
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
65 lines (57 loc) · 1.86 KB
/
.pre-commit-config.yaml
File metadata and controls
65 lines (57 loc) · 1.86 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
55
56
57
58
59
60
61
62
63
64
65
default_stages: [commit,push]
repos:
- repo: local
hooks:
- id: isort
name: isort
description: A Python utility that sorts imports alphabetically.
entry: poetry run isort
language: system
types: [python]
- id: autoflake
name: autoflake
description: Removes unused imports and unused variables from Python code.
entry: poetry run autoflake
language: system
types: [python]
- id: flake8
name: Flake8
description: Python Style Guide Enforcement.
entry: poetry run flake8 --config .flake8
language: system
types: [python]
- id: black
name: Black
description: Uncompromising Python code formatter.
entry: poetry run black
language: system
types: [python]
- id: trailing-whitespace
name: Trim Trailing Space
entry: poetry run 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: poetry run 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: poetry run check-merge-conflict
language: system
types: [file, text]
- id: codespell
name: Check Spelling
description: Checks for common misspellings in text files.
entry: poetry run codespell --ignore-words .aspell.en.pws
language: system
types: [file, text]
- id: yamllint
name: yamllint
description: Lint YAML files.
entry: poetry run yamllint
language: system
types: [yaml]