-
Notifications
You must be signed in to change notification settings - Fork 2
/
.pre-commit-config.yaml
53 lines (47 loc) · 1.61 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
- repo: local
hooks:
- id: isort
name: isort
entry: make sort
language: system
types: [python]
- id: flake8
name: Flake8
entry: poetry run flake8
language: system
types: [python]
- id: black
name: black
entry: poetry run black
language: system
types: [python]
- id: trailing-whitespace
name: Trim Trailing Space
entry: poetry run trailing-whitespace-fixer
language: system
types: [non-executable, file, text]
exclude_types: [svg]
exclude: '(yarn|^(dist/)|__snapshots__|node_modules|.csv)'
- 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: [non-executable, file, text]
exclude_types: [svg]
exclude: '(yarn|^(dist/)|__snapshots__|node_modules|.csv)'
- 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
stages: [push]
- id: codespell
name: Check Spelling
description: Checks for common misspellings in text files.
entry: poetry run codespell
language: system
types: [non-executable, file, text]
exclude_types: [svg]
exclude: 'Countries|.circleci/wplang.py|.circleci/const.py|.circleci/dictionaries|.csv|defaults.yaml'
stages: [push]