|
a |
|
b/.pre-commit-config.yaml |
|
|
1 |
repos: |
|
|
2 |
- repo: local |
|
|
3 |
hooks: |
|
|
4 |
- id: black |
|
|
5 |
name: black |
|
|
6 |
entry: black |
|
|
7 |
language: system |
|
|
8 |
types: [python] |
|
|
9 |
require_serial: true |
|
|
10 |
- id: check-added-large-files |
|
|
11 |
name: Check for added large files |
|
|
12 |
entry: check-added-large-files |
|
|
13 |
language: system |
|
|
14 |
- id: check-merge-conflict |
|
|
15 |
name: Check for files with merge conflict strings |
|
|
16 |
entry: check-merge-conflict |
|
|
17 |
language: system |
|
|
18 |
- id: end-of-file-fixer |
|
|
19 |
name: Fix End of Files |
|
|
20 |
entry: end-of-file-fixer |
|
|
21 |
language: system |
|
|
22 |
types: [text] |
|
|
23 |
stages: [commit, push, manual] |
|
|
24 |
- id: trailing-whitespace |
|
|
25 |
name: Trim Trailing Whitespace |
|
|
26 |
entry: trailing-whitespace-fixer |
|
|
27 |
language: system |
|
|
28 |
types: [text] |
|
|
29 |
stages: [commit, push, manual] |
|
|
30 |
- id: check-toml |
|
|
31 |
name: Check Toml |
|
|
32 |
entry: check-toml |
|
|
33 |
language: system |
|
|
34 |
types: [toml] |
|
|
35 |
- id: check-yaml |
|
|
36 |
name: Check Yaml |
|
|
37 |
entry: check-yaml |
|
|
38 |
language: system |
|
|
39 |
types: [yaml] |
|
|
40 |
# - id: reorder-python-imports |
|
|
41 |
# name: Reorder python imports |
|
|
42 |
# entry: reorder-python-imports |
|
|
43 |
# language: system |
|
|
44 |
# types: [python] |
|
|
45 |
# - id: flake8 |
|
|
46 |
# name: flake8 |
|
|
47 |
# entry: flake8 |
|
|
48 |
# language: system |
|
|
49 |
# types: [python] |
|
|
50 |
# args: ["--config=.flake8"] |
|
|
51 |
# require_serial: true |
|
|
52 |
- id: no-commit-to-branch |
|
|
53 |
name: Prevent commits to dev / master |
|
|
54 |
entry: no-commit-to-branch |
|
|
55 |
language: python |
|
|
56 |
args: ["-b", dev, "-b", master, "-b", main] |
|
|
57 |
pass_filenames: false |
|
|
58 |
- repo: https://github.com/prettier/pre-commit |
|
|
59 |
rev: v2.1.2 |
|
|
60 |
hooks: |
|
|
61 |
- id: prettier |